summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2015-04-03 20:02:29 +0200
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2015-04-08 16:20:55 +0200
commitc9f0807752f6ae09ee85478c8d16d53d222f6435 (patch)
tree3d64a079934bf59bbe24febd4f9142b840509569 /gst-libs/gst/vaapi/gstvaapidecoder_h264.c
parentd1cb1959b2d4190c48409e8be645deee537d4210 (diff)
downloadgst-vaapi-c9f0807752f6ae09ee85478c8d16d53d222f6435.tar.gz
decoder: cast GST_VAAPI_DECODER_STATUS_DROP_FRAME
Since GST_VAAPI_DECODER_STATUS_DROP_FRAME is not part of the enum GstVaapiDecoderStatus, we need to cast it to avoid compiler complains. https://bugzilla.gnome.org/show_bug.cgi?id=747312
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapidecoder_h264.c')
-rw-r--r--gst-libs/gst/vaapi/gstvaapidecoder_h264.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
index ffc06d57..207d99a6 100644
--- a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
+++ b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
@@ -1515,7 +1515,7 @@ error:
drop_frame:
priv->decoder_state = 0;
priv->pic_structure = GST_H264_SEI_PIC_STRUCT_FRAME;
- return GST_VAAPI_DECODER_STATUS_DROP_FRAME;
+ return (GstVaapiDecoderStatus) GST_VAAPI_DECODER_STATUS_DROP_FRAME;
}
static GstVaapiDecoderStatus
@@ -3522,10 +3522,6 @@ decode_picture(GstVaapiDecoderH264 *decoder, GstVaapiDecoderUnit *unit)
switch (sps->profile_idc) {
case GST_H264_PROFILE_MULTIVIEW_HIGH:
case GST_H264_PROFILE_STEREO_HIGH:
- if (0) {
- GST_DEBUG("drop picture from substream");
- return GST_VAAPI_DECODER_STATUS_DROP_FRAME;
- }
break;
}