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:
Vivia Nikolaidou 2019-12-16 18:43:44 +02:00
parent 5766731bd4
commit 7cbc351e05

View file

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