basesink : wrong return of position query during flush event
I have an issue about query position in basesink.
Actually, I use dashdemux to playback for recorded file in our target environment (e.g TV).
media player send position query periodically and use position value to set play speed.
if player send position query during flush event, basesink return true with reseted position 0.
so change play speed quickly many times, sometimes player use 0 position and trick play start from 0sec.
actually gst_base_sink_get_position return false at that time but default_element_query try get position again using gst_pad_peer_query.
the problem is gst_pad_peer_query just return true without check position value.
so player can not judge whether it is the correct value.
if default_element_query just return false without call gst_pad_peer_query in issue situation, player don't use wrong position.