amcvideodec: fix build error from change in libgstgl
authorMatthew Waters <matthew@centricular.com>
Fri, 13 Jan 2017 10:17:33 +0000 (21:17 +1100)
committerMatthew Waters <matthew@centricular.com>
Fri, 13 Jan 2017 10:17:33 +0000 (21:17 +1100)
gstamcvideodec.c: In function 'gst_amc_video_dec_src_query':
gstamcvideodec.c:2412:55: error: 'self' undeclared (first use in this function)
       if (gst_gl_handle_context_query ((GstElement *) self, query,

sys/androidmedia/gstamcvideodec.c

index e3c32a9..5fec5fb 100644 (file)
@@ -2406,6 +2406,8 @@ gst_amc_video_dec_drain (GstAmcVideoDec * self)
 static gboolean
 gst_amc_video_dec_src_query (GstVideoDecoder * bdec, GstQuery * query)
 {
+  GstAmcVideoDec *self = GST_AMC_VIDEO_DEC (decoder);
+
   switch (GST_QUERY_TYPE (query)) {
     case GST_QUERY_CONTEXT:
     {