summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-10-14 19:32:07 +0300
committerSebastian Dröge <sebastian@centricular.com>2015-10-20 10:12:32 +0300
commitf38ec27cdfc4c2689b07e74a3b1bcbc8173d335f (patch)
treeda28050a7129015c3692c231f3cd69bb45b6ac18
parent65c7214237a5dccbd57cf43437f9f3a26bc2e742 (diff)
downloadgstreamer-plugins-bad-f38ec27cdfc4c2689b07e74a3b1bcbc8173d335f.tar.gz
amcvideodec: Properly forward the return value of gst_video_decoder_negotiate()
https://bugzilla.gnome.org/show_bug.cgi?id=756578
-rw-r--r--sys/androidmedia/gstamcvideodec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/androidmedia/gstamcvideodec.c b/sys/androidmedia/gstamcvideodec.c
index 68700df9f..48b0dcdcd 100644
--- a/sys/androidmedia/gstamcvideodec.c
+++ b/sys/androidmedia/gstamcvideodec.c
@@ -475,6 +475,7 @@ gst_amc_video_dec_set_src_caps (GstAmcVideoDec * self, GstAmcFormat * format)
GstVideoFormat gst_format;
GstAmcVideoDecClass *klass = GST_AMC_VIDEO_DEC_GET_CLASS (self);
GError *err = NULL;
+ gboolean ret;
if (!gst_amc_format_get_int (format, "color-format", &color_format, &err) ||
!gst_amc_format_get_int (format, "width", &width, &err) ||
@@ -559,11 +560,11 @@ gst_amc_video_dec_set_src_caps (GstAmcVideoDec * self, GstAmcFormat * format)
self->color_format_info.crop_top, self->color_format_info.crop_right,
self->color_format_info.crop_bottom, self->color_format_info.frame_size);
- gst_video_decoder_negotiate (GST_VIDEO_DECODER (self));
+ ret = gst_video_decoder_negotiate (GST_VIDEO_DECODER (self));
gst_video_codec_state_unref (output_state);
self->input_state_changed = FALSE;
- return TRUE;
+ return ret;
}
static gboolean