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:
Wim Taymans 2011-08-04 13:48:11 +02:00
parent aa97daaf0e
commit 21ea3fdd96

View file

@ -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);