diff options
author | Debarshi Ray <rishi@gnu.org> | 2011-05-30 17:54:26 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-06-04 20:26:02 +0100 |
commit | 335293bf50e74fd9a4053d7441b301aafd0428c5 (patch) | |
tree | 651c2ec552fb2d5be571217185d19d6fe11c8031 | |
parent | 23576af52aabee13181c03df056450411378a489 (diff) |
Remove unused but set variables
This is needed to satisfy the new -Wunused-but-set-variable added in
GCC 4.6: http://gcc.gnu.org/gcc-4.6/changes.html
-rw-r--r-- | ext/cog/gstcogdownsample.c | 8 | ||||
-rw-r--r-- | ext/cog/gstcogscale.c | 6 | ||||
-rw-r--r-- | ext/cog/gstcolorconvert.c | 8 | ||||
-rw-r--r-- | ext/cog/gstlogoinsert.c | 5 | ||||
-rw-r--r-- | gst/nsf/gstnsf.c | 2 | ||||
-rw-r--r-- | gst/patchdetect/gstpatchdetect.c | 12 | ||||
-rw-r--r-- | gst/sdi/gstsdidemux.c | 12 | ||||
-rw-r--r-- | gst/sdi/gstsdimux.c | 12 | ||||
-rw-r--r-- | gst/videofilters/gstscenechange.c | 9 | ||||
-rw-r--r-- | gst/videofilters/gstvideofilter2.c | 12 | ||||
-rw-r--r-- | gst/videofilters/gstzebrastripe.c | 3 | ||||
-rw-r--r-- | gst/videoparsers/gstdiracparse.c | 12 | ||||
-rw-r--r-- | gst/y4m/gsty4mdec.c | 11 | ||||
-rw-r--r-- | sys/decklink/gstdecklinksink.cpp | 9 | ||||
-rw-r--r-- | sys/decklink/gstdecklinksrc.cpp | 11 | ||||
-rw-r--r-- | sys/fbdev/gstfbdevsink.c | 2 | ||||
-rw-r--r-- | sys/linsys/gstlinsyssdisink.c | 10 | ||||
-rw-r--r-- | sys/linsys/gstlinsyssdisrc.c | 6 |
18 files changed, 1 insertions, 149 deletions
diff --git a/ext/cog/gstcogdownsample.c b/ext/cog/gstcogdownsample.c index 8bec086c0..c929c12ec 100644 --- a/ext/cog/gstcogdownsample.c +++ b/ext/cog/gstcogdownsample.c @@ -170,10 +170,7 @@ static void gst_cogdownsample_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec) { - GstCogdownsample *src; - g_return_if_fail (GST_IS_COGDOWNSAMPLE (object)); - src = GST_COGDOWNSAMPLE (object); GST_DEBUG ("gst_cogdownsample_set_property"); switch (prop_id) { @@ -186,10 +183,7 @@ static void gst_cogdownsample_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec) { - GstCogdownsample *src; - g_return_if_fail (GST_IS_COGDOWNSAMPLE (object)); - src = GST_COGDOWNSAMPLE (object); switch (prop_id) { default: @@ -308,14 +302,12 @@ static GstFlowReturn gst_cogdownsample_transform (GstBaseTransform * base_transform, GstBuffer * inbuf, GstBuffer * outbuf) { - GstCogdownsample *compress; CogFrame *outframe; int width, height; uint32_t format; CogFrame *frame; g_return_val_if_fail (GST_IS_COGDOWNSAMPLE (base_transform), GST_FLOW_ERROR); - compress = GST_COGDOWNSAMPLE (base_transform); gst_structure_get_fourcc (gst_caps_get_structure (inbuf->caps, 0), "format", &format); diff --git a/ext/cog/gstcogscale.c b/ext/cog/gstcogscale.c index 570f367d6..52585ac90 100644 --- a/ext/cog/gstcogscale.c +++ b/ext/cog/gstcogscale.c @@ -296,7 +296,6 @@ static GstCaps * gst_cog_scale_transform_caps (GstBaseTransform * trans, GstPadDirection direction, GstCaps * caps) { - GstCogScale *videoscale; GstCaps *ret; GstStructure *structure; const GValue *par; @@ -304,8 +303,6 @@ gst_cog_scale_transform_caps (GstBaseTransform * trans, /* this function is always called with a simple caps */ g_return_val_if_fail (GST_CAPS_IS_SIMPLE (caps), NULL); - videoscale = GST_COG_SCALE (trans); - structure = gst_caps_get_structure (caps, 0); ret = gst_caps_copy (caps); @@ -371,14 +368,11 @@ static gboolean gst_cog_scale_get_unit_size (GstBaseTransform * trans, GstCaps * caps, guint * size) { - GstCogScale *videoscale; GstVideoFormat format; gint width, height; g_assert (size); - videoscale = GST_COG_SCALE (trans); - if (!gst_video_format_parse_caps (caps, &format, &width, &height)) return FALSE; diff --git a/ext/cog/gstcolorconvert.c b/ext/cog/gstcolorconvert.c index 560ca68c9..1ed6d91a5 100644 --- a/ext/cog/gstcolorconvert.c +++ b/ext/cog/gstcolorconvert.c @@ -148,11 +148,9 @@ gst_colorconvert_class_init (gpointer g_class, gpointer class_data) { GObjectClass *gobject_class; GstBaseTransformClass *base_transform_class; - GstColorconvertClass *filter_class; gobject_class = G_OBJECT_CLASS (g_class); base_transform_class = GST_BASE_TRANSFORM_CLASS (g_class); - filter_class = GST_COLORCONVERT_CLASS (g_class); gobject_class->set_property = gst_colorconvert_set_property; gobject_class->get_property = gst_colorconvert_get_property; @@ -172,10 +170,7 @@ static void gst_colorconvert_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec) { - GstColorconvert *src; - g_return_if_fail (GST_IS_COLORCONVERT (object)); - src = GST_COLORCONVERT (object); GST_DEBUG ("gst_colorconvert_set_property"); switch (prop_id) { @@ -188,10 +183,7 @@ static void gst_colorconvert_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec) { - GstColorconvert *src; - g_return_if_fail (GST_IS_COLORCONVERT (object)); - src = GST_COLORCONVERT (object); switch (prop_id) { default: diff --git a/ext/cog/gstlogoinsert.c b/ext/cog/gstlogoinsert.c index a49d85494..5746528e4 100644 --- a/ext/cog/gstlogoinsert.c +++ b/ext/cog/gstlogoinsert.c @@ -223,10 +223,7 @@ gst_logoinsert_get_property (GObject * object, guint prop_id, GValue * value, void gst_logoinsert_dispose (GObject * object) { - GstLogoinsert *logoinsert; - g_return_if_fail (GST_IS_LOGOINSERT (object)); - logoinsert = GST_LOGOINSERT (object); /* clean up as possible. may be called multiple times */ @@ -426,7 +423,6 @@ cog_frame_new_from_png (void *data, int size) png_bytep *rows; CogFrame *frame; guchar *frame_data; - int rowbytes; int j; int width, height; int color_type; @@ -458,7 +454,6 @@ cog_frame_new_from_png (void *data, int size) frame = cog_frame_new_from_data_ARGB (frame_data, width, height); frame->regions[0] = frame_data; - rowbytes = png_get_rowbytes (png_ptr, info_ptr); rows = (png_bytep *) g_malloc (sizeof (png_bytep) * height); for (j = 0; j < height; j++) { diff --git a/gst/nsf/gstnsf.c b/gst/nsf/gstnsf.c index bb281173c..63ab00141 100644 --- a/gst/nsf/gstnsf.c +++ b/gst/nsf/gstnsf.c @@ -151,10 +151,8 @@ static void gst_nsfdec_class_init (GstNsfDec * klass) { GObjectClass *gobject_class; - GstElementClass *gstelement_class; gobject_class = (GObjectClass *) klass; - gstelement_class = (GstElementClass *) klass; parent_class = GST_ELEMENT_CLASS (g_type_class_peek_parent (klass)); diff --git a/gst/patchdetect/gstpatchdetect.c b/gst/patchdetect/gstpatchdetect.c index 1f44e3609..af4d88319 100644 --- a/gst/patchdetect/gstpatchdetect.c +++ b/gst/patchdetect/gstpatchdetect.c @@ -159,10 +159,7 @@ void gst_patchdetect_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) { - GstPatchdetect *patchdetect; - g_return_if_fail (GST_IS_PATCHDETECT (object)); - patchdetect = GST_PATCHDETECT (object); switch (property_id) { default: @@ -175,10 +172,7 @@ void gst_patchdetect_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { - GstPatchdetect *patchdetect; - g_return_if_fail (GST_IS_PATCHDETECT (object)); - patchdetect = GST_PATCHDETECT (object); switch (property_id) { default: @@ -190,10 +184,7 @@ gst_patchdetect_get_property (GObject * object, guint property_id, void gst_patchdetect_dispose (GObject * object) { - GstPatchdetect *patchdetect; - g_return_if_fail (GST_IS_PATCHDETECT (object)); - patchdetect = GST_PATCHDETECT (object); /* clean up as possible. may be called multiple times */ @@ -203,10 +194,7 @@ gst_patchdetect_dispose (GObject * object) void gst_patchdetect_finalize (GObject * object) { - GstPatchdetect *patchdetect; - g_return_if_fail (GST_IS_PATCHDETECT (object)); - patchdetect = GST_PATCHDETECT (object); /* clean up object here */ diff --git a/gst/sdi/gstsdidemux.c b/gst/sdi/gstsdidemux.c index bc0b76635..1636b5a94 100644 --- a/gst/sdi/gstsdidemux.c +++ b/gst/sdi/gstsdidemux.c @@ -160,10 +160,7 @@ void gst_sdi_demux_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) { - GstSdiDemux *sdidemux; - g_return_if_fail (GST_IS_SDI_DEMUX (object)); - sdidemux = GST_SDI_DEMUX (object); switch (property_id) { default: @@ -176,10 +173,7 @@ void gst_sdi_demux_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { - GstSdiDemux *sdidemux; - g_return_if_fail (GST_IS_SDI_DEMUX (object)); - sdidemux = GST_SDI_DEMUX (object); switch (property_id) { default: @@ -191,10 +185,7 @@ gst_sdi_demux_get_property (GObject * object, guint property_id, void gst_sdi_demux_dispose (GObject * object) { - GstSdiDemux *sdidemux; - g_return_if_fail (GST_IS_SDI_DEMUX (object)); - sdidemux = GST_SDI_DEMUX (object); /* clean up as possible. may be called multiple times */ @@ -204,10 +195,7 @@ gst_sdi_demux_dispose (GObject * object) void gst_sdi_demux_finalize (GObject * object) { - GstSdiDemux *sdidemux; - g_return_if_fail (GST_IS_SDI_DEMUX (object)); - sdidemux = GST_SDI_DEMUX (object); /* clean up object here */ diff --git a/gst/sdi/gstsdimux.c b/gst/sdi/gstsdimux.c index d2c4ef7c6..779add42a 100644 --- a/gst/sdi/gstsdimux.c +++ b/gst/sdi/gstsdimux.c @@ -163,10 +163,7 @@ void gst_sdi_mux_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) { - GstSdiMux *sdimux; - g_return_if_fail (GST_IS_SDI_MUX (object)); - sdimux = GST_SDI_MUX (object); switch (property_id) { default: @@ -179,10 +176,7 @@ void gst_sdi_mux_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { - GstSdiMux *sdimux; - g_return_if_fail (GST_IS_SDI_MUX (object)); - sdimux = GST_SDI_MUX (object); switch (property_id) { default: @@ -194,10 +188,7 @@ gst_sdi_mux_get_property (GObject * object, guint property_id, void gst_sdi_mux_dispose (GObject * object) { - GstSdiMux *sdimux; - g_return_if_fail (GST_IS_SDI_MUX (object)); - sdimux = GST_SDI_MUX (object); /* clean up as possible. may be called multiple times */ @@ -207,10 +198,7 @@ gst_sdi_mux_dispose (GObject * object) void gst_sdi_mux_finalize (GObject * object) { - GstSdiMux *sdimux; - g_return_if_fail (GST_IS_SDI_MUX (object)); - sdimux = GST_SDI_MUX (object); /* clean up object here */ diff --git a/gst/videofilters/gstscenechange.c b/gst/videofilters/gstscenechange.c index 385ed0b30..0cfb8b274 100644 --- a/gst/videofilters/gstscenechange.c +++ b/gst/videofilters/gstscenechange.c @@ -169,10 +169,7 @@ void gst_scene_change_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) { - GstSceneChange *scenechange; - g_return_if_fail (GST_IS_SCENE_CHANGE (object)); - scenechange = GST_SCENE_CHANGE (object); switch (property_id) { default: @@ -185,10 +182,7 @@ void gst_scene_change_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { - GstSceneChange *scenechange; - g_return_if_fail (GST_IS_SCENE_CHANGE (object)); - scenechange = GST_SCENE_CHANGE (object); switch (property_id) { default: @@ -200,10 +194,7 @@ gst_scene_change_get_property (GObject * object, guint property_id, void gst_scene_change_dispose (GObject * object) { - GstSceneChange *scenechange; - g_return_if_fail (GST_IS_SCENE_CHANGE (object)); - scenechange = GST_SCENE_CHANGE (object); /* clean up as possible. may be called multiple times */ diff --git a/gst/videofilters/gstvideofilter2.c b/gst/videofilters/gstvideofilter2.c index fdffb6524..263134610 100644 --- a/gst/videofilters/gstvideofilter2.c +++ b/gst/videofilters/gstvideofilter2.c @@ -139,10 +139,7 @@ void gst_video_filter2_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) { - GstVideoFilter2 *videofilter2; - g_return_if_fail (GST_IS_VIDEO_FILTER2 (object)); - videofilter2 = GST_VIDEO_FILTER2 (object); switch (property_id) { default: @@ -155,10 +152,7 @@ void gst_video_filter2_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { - GstVideoFilter2 *videofilter2; - g_return_if_fail (GST_IS_VIDEO_FILTER2 (object)); - videofilter2 = GST_VIDEO_FILTER2 (object); switch (property_id) { default: @@ -170,10 +164,7 @@ gst_video_filter2_get_property (GObject * object, guint property_id, void gst_video_filter2_dispose (GObject * object) { - GstVideoFilter2 *videofilter2; - g_return_if_fail (GST_IS_VIDEO_FILTER2 (object)); - videofilter2 = GST_VIDEO_FILTER2 (object); /* clean up as possible. may be called multiple times */ @@ -183,10 +174,7 @@ gst_video_filter2_dispose (GObject * object) void gst_video_filter2_finalize (GObject * object) { - GstVideoFilter2 *videofilter2; - g_return_if_fail (GST_IS_VIDEO_FILTER2 (object)); - videofilter2 = GST_VIDEO_FILTER2 (object); /* clean up object here */ diff --git a/gst/videofilters/gstzebrastripe.c b/gst/videofilters/gstzebrastripe.c index e1107ed77..e4acd3a5d 100644 --- a/gst/videofilters/gstzebrastripe.c +++ b/gst/videofilters/gstzebrastripe.c @@ -177,10 +177,7 @@ gst_zebra_stripe_get_property (GObject * object, guint property_id, void gst_zebra_stripe_finalize (GObject * object) { - GstZebraStripe *zebrastripe; - g_return_if_fail (GST_IS_ZEBRA_STRIPE (object)); - zebrastripe = GST_ZEBRA_STRIPE (object); /* clean up object here */ diff --git a/gst/videoparsers/gstdiracparse.c b/gst/videoparsers/gstdiracparse.c index 6a7c11548..fbd157abb 100644 --- a/gst/videoparsers/gstdiracparse.c +++ b/gst/videoparsers/gstdiracparse.c @@ -144,10 +144,7 @@ void gst_dirac_parse_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) { - GstDiracParse *diracparse; - g_return_if_fail (GST_IS_DIRAC_PARSE (object)); - diracparse = GST_DIRAC_PARSE (object); switch (property_id) { default: @@ -160,10 +157,7 @@ void gst_dirac_parse_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { - GstDiracParse *diracparse; - g_return_if_fail (GST_IS_DIRAC_PARSE (object)); - diracparse = GST_DIRAC_PARSE (object); switch (property_id) { default: @@ -175,10 +169,7 @@ gst_dirac_parse_get_property (GObject * object, guint property_id, void gst_dirac_parse_dispose (GObject * object) { - GstDiracParse *diracparse; - g_return_if_fail (GST_IS_DIRAC_PARSE (object)); - diracparse = GST_DIRAC_PARSE (object); /* clean up as possible. may be called multiple times */ @@ -188,10 +179,7 @@ gst_dirac_parse_dispose (GObject * object) void gst_dirac_parse_finalize (GObject * object) { - GstDiracParse *diracparse; - g_return_if_fail (GST_IS_DIRAC_PARSE (object)); - diracparse = GST_DIRAC_PARSE (object); /* clean up object here */ diff --git a/gst/y4m/gsty4mdec.c b/gst/y4m/gsty4mdec.c index 0be92a8d6..8065bd3d5 100644 --- a/gst/y4m/gsty4mdec.c +++ b/gst/y4m/gsty4mdec.c @@ -146,10 +146,7 @@ void gst_y4m_dec_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) { - GstY4mDec *y4mdec; - g_return_if_fail (GST_IS_Y4M_DEC (object)); - y4mdec = GST_Y4M_DEC (object); switch (property_id) { default: @@ -162,10 +159,7 @@ void gst_y4m_dec_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { - GstY4mDec *y4mdec; - g_return_if_fail (GST_IS_Y4M_DEC (object)); - y4mdec = GST_Y4M_DEC (object); switch (property_id) { default: @@ -194,10 +188,7 @@ gst_y4m_dec_dispose (GObject * object) void gst_y4m_dec_finalize (GObject * object) { - GstY4mDec *y4mdec; - g_return_if_fail (GST_IS_Y4M_DEC (object)); - y4mdec = GST_Y4M_DEC (object); /* clean up object here */ @@ -207,11 +198,9 @@ gst_y4m_dec_finalize (GObject * object) static GstStateChangeReturn gst_y4m_dec_change_state (GstElement * element, GstStateChange transition) { - GstY4mDec *y4mdec; GstStateChangeReturn ret; g_return_val_if_fail (GST_IS_Y4M_DEC (element), GST_STATE_CHANGE_FAILURE); - y4mdec = GST_Y4M_DEC (element); switch (transition) { case GST_STATE_CHANGE_NULL_TO_READY: diff --git a/sys/decklink/gstdecklinksink.cpp b/sys/decklink/gstdecklinksink.cpp index 9fc39e40b..43f78ebcf 100644 --- a/sys/decklink/gstdecklinksink.cpp +++ b/sys/decklink/gstdecklinksink.cpp @@ -314,10 +314,7 @@ void gst_decklink_sink_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) { - GstDecklinkSink *decklinksink; - g_return_if_fail (GST_IS_DECKLINK_SINK (object)); - decklinksink = GST_DECKLINK_SINK (object); switch (property_id) { default: @@ -330,10 +327,7 @@ void gst_decklink_sink_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { - GstDecklinkSink *decklinksink; - g_return_if_fail (GST_IS_DECKLINK_SINK (object)); - decklinksink = GST_DECKLINK_SINK (object); switch (property_id) { default: @@ -345,10 +339,7 @@ gst_decklink_sink_get_property (GObject * object, guint property_id, void gst_decklink_sink_dispose (GObject * object) { - GstDecklinkSink *decklinksink; - g_return_if_fail (GST_IS_DECKLINK_SINK (object)); - decklinksink = GST_DECKLINK_SINK (object); /* clean up as possible. may be called multiple times */ diff --git a/sys/decklink/gstdecklinksrc.cpp b/sys/decklink/gstdecklinksrc.cpp index aa4246833..373cd9615 100644 --- a/sys/decklink/gstdecklinksrc.cpp +++ b/sys/decklink/gstdecklinksrc.cpp @@ -303,10 +303,7 @@ void gst_decklink_src_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) { - GstDecklinkSrc *decklinksrc; - g_return_if_fail (GST_IS_DECKLINK_SRC (object)); - decklinksrc = GST_DECKLINK_SRC (object); switch (property_id) { default: @@ -319,10 +316,7 @@ void gst_decklink_src_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { - GstDecklinkSrc *decklinksrc; - g_return_if_fail (GST_IS_DECKLINK_SRC (object)); - decklinksrc = GST_DECKLINK_SRC (object); switch (property_id) { default: @@ -334,10 +328,7 @@ gst_decklink_src_get_property (GObject * object, guint property_id, void gst_decklink_src_dispose (GObject * object) { - GstDecklinkSrc *decklinksrc; - g_return_if_fail (GST_IS_DECKLINK_SRC (object)); - decklinksrc = GST_DECKLINK_SRC (object); /* clean up as possible. may be called multiple times */ @@ -495,13 +486,11 @@ gst_decklink_src_stop (GstElement * element) static GstStateChangeReturn gst_decklink_src_change_state (GstElement * element, GstStateChange transition) { - GstDecklinkSrc *decklinksrc; GstStateChangeReturn ret; gboolean no_preroll = FALSE; g_return_val_if_fail (GST_IS_DECKLINK_SRC (element), GST_STATE_CHANGE_FAILURE); - decklinksrc = GST_DECKLINK_SRC (element); switch (transition) { case GST_STATE_CHANGE_NULL_TO_READY: diff --git a/sys/fbdev/gstfbdevsink.c b/sys/fbdev/gstfbdevsink.c index 989d48f15..8925f3d30 100644 --- a/sys/fbdev/gstfbdevsink.c +++ b/sys/fbdev/gstfbdevsink.c @@ -351,11 +351,9 @@ gst_fbdevsink_get_property (GObject * object, guint prop_id, GValue * value, static GstStateChangeReturn gst_fbdevsink_change_state (GstElement * element, GstStateChange transition) { - GstFBDEVSink *fbdevsink; GstStateChangeReturn ret = GST_STATE_CHANGE_SUCCESS; g_return_val_if_fail (GST_IS_FBDEVSINK (element), GST_STATE_CHANGE_FAILURE); - fbdevsink = GST_FBDEVSINK (element); ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition); diff --git a/sys/linsys/gstlinsyssdisink.c b/sys/linsys/gstlinsyssdisink.c index 872c3d60e..3e9ad165b 100644 --- a/sys/linsys/gstlinsyssdisink.c +++ b/sys/linsys/gstlinsyssdisink.c @@ -196,10 +196,7 @@ gst_linsys_sdi_sink_get_property (GObject * object, guint property_id, void gst_linsys_sdi_sink_dispose (GObject * object) { - GstLinsysSdiSink *linsyssdisink; - g_return_if_fail (GST_IS_LINSYS_SDI_SINK (object)); - linsyssdisink = GST_LINSYS_SDI_SINK (object); /* clean up as possible. may be called multiple times */ @@ -209,10 +206,7 @@ gst_linsys_sdi_sink_dispose (GObject * object) void gst_linsys_sdi_sink_finalize (GObject * object) { - GstLinsysSdiSink *linsyssdisink; - g_return_if_fail (GST_IS_LINSYS_SDI_SINK (object)); - linsyssdisink = GST_LINSYS_SDI_SINK (object); /* clean up object here */ @@ -332,7 +326,7 @@ sdi_mux (guint8 * data, GstBuffer * buffer) int j; int i; guint8 *dest; - int f, v, h; + int f, v; int line; for (j = 0; j < 525; j++) { @@ -352,8 +346,6 @@ sdi_mux (guint8 * data, GstBuffer * buffer) f = 0; } - h = 0; - dest[0] = 0xff; dest[1] = 0; dest[2] = 0; diff --git a/sys/linsys/gstlinsyssdisrc.c b/sys/linsys/gstlinsyssdisrc.c index 075b0c713..c5a928c68 100644 --- a/sys/linsys/gstlinsyssdisrc.c +++ b/sys/linsys/gstlinsyssdisrc.c @@ -212,10 +212,7 @@ gst_linsys_sdi_src_get_property (GObject * object, guint property_id, void gst_linsys_sdi_src_dispose (GObject * object) { - GstLinsysSdiSrc *linsyssdisrc; - g_return_if_fail (GST_IS_LINSYS_SDI_SRC (object)); - linsyssdisrc = GST_LINSYS_SDI_SRC (object); /* clean up as possible. may be called multiple times */ @@ -225,10 +222,7 @@ gst_linsys_sdi_src_dispose (GObject * object) void gst_linsys_sdi_src_finalize (GObject * object) { - GstLinsysSdiSrc *linsyssdisrc; - g_return_if_fail (GST_IS_LINSYS_SDI_SRC (object)); - linsyssdisrc = GST_LINSYS_SDI_SRC (object); /* clean up object here */ |