From ceb86a586ee5d707941bf3933d96fea66fae8b78 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 31 May 2011 18:30:30 +0200 Subject: [PATCH] gst: Remove obvious dead assignments --- gst/gstbin.c | 2 -- gst/gstbufferpool.c | 3 --- gst/gstelement.c | 2 -- libs/gst/base/gstbasesink.c | 4 ---- 4 files changed, 11 deletions(-) diff --git a/gst/gstbin.c b/gst/gstbin.c index 7d4e1fb474..15714aa47c 100644 --- a/gst/gstbin.c +++ b/gst/gstbin.c @@ -368,12 +368,10 @@ static void gst_bin_class_init (GstBinClass * klass) { GObjectClass *gobject_class; - GstObjectClass *gstobject_class; GstElementClass *gstelement_class; GError *err; gobject_class = (GObjectClass *) klass; - gstobject_class = (GstObjectClass *) klass; gstelement_class = (GstElementClass *) klass; g_type_class_add_private (klass, sizeof (GstBinPrivate)); diff --git a/gst/gstbufferpool.c b/gst/gstbufferpool.c index 7ae314e669..067551c929 100644 --- a/gst/gstbufferpool.c +++ b/gst/gstbufferpool.c @@ -294,13 +294,10 @@ do_stop (GstBufferPool * pool) gboolean gst_buffer_pool_set_active (GstBufferPool * pool, gboolean active) { - GstBufferPoolClass *pclass; gboolean res = TRUE; g_return_val_if_fail (GST_IS_BUFFER_POOL (pool), FALSE); - pclass = GST_BUFFER_POOL_GET_CLASS (pool); - GST_LOG_OBJECT (pool, "active %d", active); GST_BUFFER_POOL_LOCK (pool); diff --git a/gst/gstelement.c b/gst/gstelement.c index 44ed8d734f..4f28c18ff7 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -174,10 +174,8 @@ static void gst_element_class_init (GstElementClass * klass) { GObjectClass *gobject_class; - GstObjectClass *gstobject_class; gobject_class = (GObjectClass *) klass; - gstobject_class = (GstObjectClass *) klass; parent_class = g_type_class_peek_parent (klass); diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index ce664fbc87..0cdbfc5439 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -1482,10 +1482,6 @@ gst_base_sink_commit_state (GstBaseSink * basesink) switch (pending) { case GST_STATE_PLAYING: { - GstBaseSinkClass *bclass; - - bclass = GST_BASE_SINK_GET_CLASS (basesink); - GST_DEBUG_OBJECT (basesink, "commiting state to PLAYING"); basesink->need_preroll = FALSE;