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.
This commit is contained in:
Sebastian Dröge 2015-08-18 16:28:42 +03:00
parent 6cda5d3494
commit 64301f1005
2 changed files with 4 additions and 0 deletions

View file

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

View file

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