Commit 64301f10 authored by Sebastian Dröge's avatar Sebastian Dröge

video(en|de)coder: Return TRUE when we consumed a tag event without creating a new event

Fixes spurious flow errors that especially break gst-validate.
parent 6cda5d34
......@@ -1425,6 +1425,8 @@ gst_video_decoder_sink_event_default (GstVideoDecoder * decoder,
gst_event_unref (event);
event = gst_video_decoder_create_merged_tags_event (decoder);
GST_VIDEO_DECODER_STREAM_UNLOCK (decoder);
if (!event)
ret = TRUE;
}
break;
}
......
......@@ -1118,6 +1118,8 @@ gst_video_encoder_sink_event_default (GstVideoEncoder * encoder,
gst_event_unref (event);
event = gst_video_encoder_create_merged_tags_event (encoder);
GST_VIDEO_ENCODER_STREAM_UNLOCK (encoder);
if (!event)
ret = TRUE;
}
break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment