mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
flvdemux: Don't replace video codec data when we receive a PAR
Receiving a pixel-aspect-ratio should trigger a caps change, but not replace the existing video codec tag
This commit is contained in:
parent
5766731bd4
commit
7cbc351e05
1 changed files with 3 additions and 2 deletions
|
@ -1630,8 +1630,9 @@ gst_flv_demux_parse_tag_video (GstFlvDemux * demux, GstBuffer * buffer)
|
|||
|
||||
/* Check if caps have changed */
|
||||
if (G_UNLIKELY (codec_tag != demux->video_codec_tag || demux->got_par)) {
|
||||
GST_DEBUG_OBJECT (demux, "video settings have changed, changing caps");
|
||||
gst_buffer_replace (&demux->video_codec_data, NULL);
|
||||
GST_ERROR_OBJECT (demux, "video settings have changed, changing caps");
|
||||
if (codec_tag != demux->video_codec_tag)
|
||||
gst_buffer_replace (&demux->video_codec_data, NULL);
|
||||
|
||||
if (!gst_flv_demux_video_negotiate (demux, codec_tag)) {
|
||||
ret = GST_FLOW_ERROR;
|
||||
|
|
Loading…
Reference in a new issue