mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
amcvideodec: Don't require a non-zero buffer size when doing decoding to a surface
At least on some devices/Android versions the buffer size will always be zero in these cases. https://bugzilla.gnome.org/show_bug.cgi?id=758228
This commit is contained in:
parent
527747a077
commit
96eb5ef33c
1 changed files with 1 additions and 2 deletions
|
@ -1226,8 +1226,7 @@ retry:
|
||||||
"Frame is too late, dropping (deadline %" GST_STIME_FORMAT ")",
|
"Frame is too late, dropping (deadline %" GST_STIME_FORMAT ")",
|
||||||
GST_STIME_ARGS (deadline));
|
GST_STIME_ARGS (deadline));
|
||||||
flow_ret = gst_video_decoder_drop_frame (GST_VIDEO_DECODER (self), frame);
|
flow_ret = gst_video_decoder_drop_frame (GST_VIDEO_DECODER (self), frame);
|
||||||
} else if (self->codec_config == AMC_CODEC_CONFIG_WITH_SURFACE
|
} else if (self->codec_config == AMC_CODEC_CONFIG_WITH_SURFACE) {
|
||||||
&& buffer_info.size > 0) {
|
|
||||||
GstBuffer *outbuf;
|
GstBuffer *outbuf;
|
||||||
GstGLSyncMeta *sync_meta;
|
GstGLSyncMeta *sync_meta;
|
||||||
GstVideoCodecState *state;
|
GstVideoCodecState *state;
|
||||||
|
|
Loading…
Reference in a new issue