mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
avvidec: Make sure to store newly set caps after resetting the decoder
Otherwise we'll just set the to NULL while resetting the decoder and don't have them available anymore later. https://bugzilla.gnome.org/show_bug.cgi?id=697548
This commit is contained in:
parent
f656d9eaf7
commit
758d7bf7ea
1 changed files with 2 additions and 2 deletions
|
@ -371,8 +371,6 @@ gst_ffmpegviddec_set_format (GstVideoDecoder * decoder,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_caps_replace (&ffmpegdec->last_caps, state->caps);
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (ffmpegdec, "setcaps called");
|
GST_DEBUG_OBJECT (ffmpegdec, "setcaps called");
|
||||||
|
|
||||||
GST_OBJECT_LOCK (ffmpegdec);
|
GST_OBJECT_LOCK (ffmpegdec);
|
||||||
|
@ -389,6 +387,8 @@ gst_ffmpegviddec_set_format (GstVideoDecoder * decoder,
|
||||||
gst_ffmpegviddec_close (ffmpegdec);
|
gst_ffmpegviddec_close (ffmpegdec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gst_caps_replace (&ffmpegdec->last_caps, state->caps);
|
||||||
|
|
||||||
/* set buffer functions */
|
/* set buffer functions */
|
||||||
ffmpegdec->context->get_buffer = gst_ffmpegviddec_get_buffer;
|
ffmpegdec->context->get_buffer = gst_ffmpegviddec_get_buffer;
|
||||||
ffmpegdec->context->reget_buffer = gst_ffmpegviddec_reget_buffer;
|
ffmpegdec->context->reget_buffer = gst_ffmpegviddec_reget_buffer;
|
||||||
|
|
Loading…
Reference in a new issue