mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
basesrc: PAUSED<->PLAY doesn't change pool state
Don't change the state of the bufferpool when going between PAUSED and PLAYING, it will dealloc and realloc all buffers, which is clearly too invasive. We will need to add some other way of unblocking the bufferpool.
This commit is contained in:
parent
aa97daaf0e
commit
21ea3fdd96
1 changed files with 0 additions and 2 deletions
|
@ -3041,7 +3041,6 @@ gst_base_src_set_playing (GstBaseSrc * basesrc, gboolean live_play)
|
|||
/* unlock subclasses locked in ::create, we only do this when we stop playing. */
|
||||
if (!live_play) {
|
||||
GST_DEBUG_OBJECT (basesrc, "unlock");
|
||||
gst_base_src_activate_pool (basesrc, FALSE);
|
||||
if (bclass->unlock)
|
||||
bclass->unlock (basesrc);
|
||||
}
|
||||
|
@ -3065,7 +3064,6 @@ gst_base_src_set_playing (GstBaseSrc * basesrc, gboolean live_play)
|
|||
|
||||
/* clear our unlock request when going to PLAYING */
|
||||
GST_DEBUG_OBJECT (basesrc, "unlock stop");
|
||||
gst_base_src_activate_pool (basesrc, TRUE);
|
||||
if (bclass->unlock_stop)
|
||||
bclass->unlock_stop (basesrc);
|
||||
|
||||
|
|
Loading…
Reference in a new issue