Receiving a pixel-aspect-ratio should trigger a caps change, but not
replace the existing video codec tag
/* 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;