mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
videodec: add some assert
This commit is contained in:
parent
c7cfb66467
commit
676375ecfe
1 changed files with 1 additions and 0 deletions
|
@ -2840,6 +2840,7 @@ gst_video_decoder_alloc_output_frame (GstVideoDecoder *
|
||||||
int num_bytes = GST_VIDEO_INFO_SIZE (&state->info);
|
int num_bytes = GST_VIDEO_INFO_SIZE (&state->info);
|
||||||
|
|
||||||
g_return_val_if_fail (num_bytes != 0, GST_FLOW_ERROR);
|
g_return_val_if_fail (num_bytes != 0, GST_FLOW_ERROR);
|
||||||
|
g_return_val_if_fail (frame->output_buffer == NULL, GST_FLOW_ERROR);
|
||||||
|
|
||||||
if (G_UNLIKELY (decoder->priv->output_state_changed
|
if (G_UNLIKELY (decoder->priv->output_state_changed
|
||||||
|| (decoder->priv->output_state
|
|| (decoder->priv->output_state
|
||||||
|
|
Loading…
Reference in a new issue