From 0cb5b42d546538b455ac3bbe90b07e3eb67eb820 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 18 Apr 2009 18:11:00 +0200 Subject: Remove trivial unused variables detected by CLang static analyzer. --- ext/dv/gstdvdemux.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ext/dv') diff --git a/ext/dv/gstdvdemux.c b/ext/dv/gstdvdemux.c index 7c7509fe..99dea754 100644 --- a/ext/dv/gstdvdemux.c +++ b/ext/dv/gstdvdemux.c @@ -1032,7 +1032,7 @@ gst_dvdemux_handle_pull_seek (GstDVDemux * demux, GstPad * pad, /* convert input format to TIME */ conv = GST_FORMAT_TIME; - if (!(res = gst_dvdemux_convert_src_pair (demux, pad, + if (!(gst_dvdemux_convert_src_pair (demux, pad, format, cur, stop, conv, &cur, &stop))) goto no_format; @@ -1379,11 +1379,10 @@ gst_dvdemux_demux_frame (GstDVDemux * dvdemux, GstBuffer * buffer) if (G_UNLIKELY (dvdemux->need_segment)) { GstEvent *event; GstFormat format; - gboolean res; /* convert to time and store as start/end_timestamp */ format = GST_FORMAT_TIME; - if (!(res = gst_dvdemux_convert_sink_pair (dvdemux, + if (!(gst_dvdemux_convert_sink_pair (dvdemux, GST_FORMAT_BYTES, dvdemux->byte_segment.start, dvdemux->byte_segment.stop, format, &dvdemux->time_segment.start, &dvdemux->time_segment.stop))) @@ -1395,7 +1394,7 @@ gst_dvdemux_demux_frame (GstDVDemux * dvdemux, GstBuffer * buffer) /* calculate current frame number */ format = GST_FORMAT_DEFAULT; - if (!(res = gst_dvdemux_src_convert (dvdemux, dvdemux->videosrcpad, + if (!(gst_dvdemux_src_convert (dvdemux, dvdemux->videosrcpad, GST_FORMAT_TIME, dvdemux->time_segment.start, &format, &dvdemux->frame_offset))) goto segment_error; -- cgit