summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2012-08-13 17:47:50 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-08-13 17:48:22 +0100
commit97277fc4b922d46cb6a997a96574bdc8506b764c (patch)
tree27aa1a0aa0bfdee9bd1875fbad133a143dace2ef
parentaaa0a1b9098f3db523ce62a671d7573721274697 (diff)
omx: avoid compiler warnings when the gstreamer debugging system is disabled
https://bugzilla.gnome.org/show_bug.cgi?id=677764
-rw-r--r--omx/gstomx_audiosink.c6
-rw-r--r--omx/gstomx_base_sink.c5
-rw-r--r--omx/gstomx_dummy.c6
3 files changed, 3 insertions, 14 deletions
diff --git a/omx/gstomx_audiosink.c b/omx/gstomx_audiosink.c
index 5bee433..8922c1c 100644
--- a/omx/gstomx_audiosink.c
+++ b/omx/gstomx_audiosink.c
@@ -109,9 +109,5 @@ type_class_init (gpointer g_class, gpointer class_data)
static void
type_instance_init (GTypeInstance * instance, gpointer g_class)
{
- GstOmxBaseSink *omx_base;
-
- omx_base = GST_OMX_BASE_SINK (instance);
-
- GST_DEBUG_OBJECT (omx_base, "start");
+ GST_DEBUG_OBJECT (instance, "start");
}
diff --git a/omx/gstomx_base_sink.c b/omx/gstomx_base_sink.c
index 9c2d40b..aadb0af 100644
--- a/omx/gstomx_base_sink.c
+++ b/omx/gstomx_base_sink.c
@@ -130,19 +130,16 @@ finalize (GObject * obj)
static GstFlowReturn
render (GstBaseSink * gst_base, GstBuffer * buf)
{
- GOmxCore *gomx;
GOmxPort *in_port;
GstOmxBaseSink *self;
GstFlowReturn ret = GST_FLOW_OK;
self = GST_OMX_BASE_SINK (gst_base);
- gomx = self->gomx;
-
GST_LOG_OBJECT (self, "begin");
GST_LOG_OBJECT (self, "gst_buffer: size=%u", GST_BUFFER_SIZE (buf));
- GST_LOG_OBJECT (self, "state: %d", gomx->omx_state);
+ GST_LOG_OBJECT (self, "state: %d", self->gomx->omx_state);
in_port = self->in_port;
diff --git a/omx/gstomx_dummy.c b/omx/gstomx_dummy.c
index 9dbd744..789b007 100644
--- a/omx/gstomx_dummy.c
+++ b/omx/gstomx_dummy.c
@@ -83,9 +83,5 @@ type_class_init (gpointer g_class, gpointer class_data)
static void
type_instance_init (GTypeInstance * instance, gpointer g_class)
{
- GstOmxBaseFilter *omx_base;
-
- omx_base = GST_OMX_BASE_FILTER (instance);
-
- GST_DEBUG_OBJECT (omx_base, "start");
+ GST_DEBUG_OBJECT (instance, "start");
}