mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
Try to get bufferpool _after_ sucessfully negotiating caps.
Original commit message from CVS: Try to get bufferpool _after_ sucessfully negotiating caps.
This commit is contained in:
parent
4694cef95a
commit
624ec76646
1 changed files with 5 additions and 4 deletions
|
@ -505,6 +505,11 @@ gst_mpeg2dec_chain (GstPad *pad, GstBuffer *buf)
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* now that we've negotiated, try to get a bufferpool */
|
||||||
|
mpeg2dec->peerpool = gst_pad_get_bufferpool (mpeg2dec->srcpad);
|
||||||
|
if (mpeg2dec->peerpool)
|
||||||
|
GST_INFO ( "got pool %p", mpeg2dec->peerpool);
|
||||||
|
|
||||||
update_streaminfo (mpeg2dec);
|
update_streaminfo (mpeg2dec);
|
||||||
|
|
||||||
if (!mpeg2dec->have_fbuf) {
|
if (!mpeg2dec->have_fbuf) {
|
||||||
|
@ -1062,10 +1067,6 @@ gst_mpeg2dec_change_state (GstElement *element)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case GST_STATE_PAUSED_TO_PLAYING:
|
case GST_STATE_PAUSED_TO_PLAYING:
|
||||||
/* try to get a bufferpool */
|
|
||||||
mpeg2dec->peerpool = gst_pad_get_bufferpool (mpeg2dec->srcpad);
|
|
||||||
if (mpeg2dec->peerpool)
|
|
||||||
GST_INFO ( "got pool %p", mpeg2dec->peerpool);
|
|
||||||
break;
|
break;
|
||||||
case GST_STATE_PLAYING_TO_PAUSED:
|
case GST_STATE_PLAYING_TO_PAUSED:
|
||||||
/* need to clear things we get from other plugins, since we could be reconnected */
|
/* need to clear things we get from other plugins, since we could be reconnected */
|
||||||
|
|
Loading…
Reference in a new issue