summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2015-02-11 11:33:04 +0100
committerEdward Hervey <bilboed@bilboed.com>2015-02-12 15:58:25 +0100
commit2f6984eda0632fb1fa8662398d2fe96feeae6281 (patch)
tree352aa487ae193562fe915b1489f5a809ee1a8f7e
parenta8c0b50ded0e58f30278b107faf5fd0350cc2f49 (diff)
amcviddec: Check if reconfiguration is needed after setting caps
-rw-r--r--sys/androidmedia/gstamcvideodec.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/androidmedia/gstamcvideodec.c b/sys/androidmedia/gstamcvideodec.c
index c1a1005c1..0e9485125 100644
--- a/sys/androidmedia/gstamcvideodec.c
+++ b/sys/androidmedia/gstamcvideodec.c
@@ -699,6 +699,14 @@ retry:
}
gst_amc_format_free (format);
+ /* Setting source caps might have caused a reconfiguration */
+ if (gst_pad_check_reconfigure (GST_VIDEO_DECODER (self)->srcpad)) {
+ GST_DEBUG_OBJECT (self,
+ "Reconfiguration needed after setting source caps");
+ gst_video_decoder_negotiate (GST_VIDEO_DECODER (self));
+ goto retry;
+ }
+
if (self->direct_rendering)
goto retry;