summaryrefslogtreecommitdiffstats
path: root/ext/raw1394
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-04-18 18:11:00 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-04-18 18:51:28 +0200
commit0cb5b42d546538b455ac3bbe90b07e3eb67eb820 (patch)
tree24b178742be806e745b7a3891aa0d63920c364b4 /ext/raw1394
parentcdb03bdc2b4548909f3f47eec6dfbbb3b5159411 (diff)
Remove trivial unused variables detected by CLang static analyzer.
Diffstat (limited to 'ext/raw1394')
-rw-r--r--ext/raw1394/gstdv1394src.c6
-rw-r--r--ext/raw1394/gsthdv1394src.c3
2 files changed, 3 insertions, 6 deletions
diff --git a/ext/raw1394/gstdv1394src.c b/ext/raw1394/gstdv1394src.c
index af7b0454..2716f742 100644
--- a/ext/raw1394/gstdv1394src.c
+++ b/ext/raw1394/gstdv1394src.c
@@ -1036,7 +1036,6 @@ gst_dv1394src_get_query_types (GstPad * pad)
static gboolean
gst_dv1394src_query (GstPad * pad, GstQuery * query)
{
- gboolean res = TRUE;
GstDV1394Src *src;
src = GST_DV1394SRC (gst_pad_get_parent (pad));
@@ -1050,7 +1049,7 @@ gst_dv1394src_query (GstPad * pad, GstQuery * query)
gst_query_parse_position (query, &format, NULL);
/* bring our current frame to the requested format */
- res = gst_pad_query_convert (pad,
+ gst_pad_query_convert (pad,
GST_FORMAT_DEFAULT, src->frame_sequence, &format, &current);
gst_query_set_position (query, format, current);
@@ -1062,8 +1061,7 @@ gst_dv1394src_query (GstPad * pad, GstQuery * query)
gint64 src_val, dest_val;
gst_query_parse_convert (query, &src_fmt, &src_val, &dest_fmt, &dest_val);
- if (!(res =
- gst_dv1394src_convert (pad, src_fmt, src_val, &dest_fmt,
+ if (!(gst_dv1394src_convert (pad, src_fmt, src_val, &dest_fmt,
&dest_val)))
goto not_supported;
gst_query_set_convert (query, src_fmt, src_val, dest_fmt, dest_val);
diff --git a/ext/raw1394/gsthdv1394src.c b/ext/raw1394/gsthdv1394src.c
index 30f59d59..4f726f8c 100644
--- a/ext/raw1394/gsthdv1394src.c
+++ b/ext/raw1394/gsthdv1394src.c
@@ -480,7 +480,6 @@ gst_hdv1394src_discover_avc_node (GstHDV1394Src * src)
/* loop over all our ports */
for (; j < m && node == -1; j++) {
raw1394handle_t handle;
- gint n_ports;
struct raw1394_portinfo pinf[16];
/* open the port */
@@ -489,7 +488,7 @@ gst_hdv1394src_discover_avc_node (GstHDV1394Src * src)
GST_WARNING ("raw1394 - failed to get handle: %s.\n", strerror (errno));
continue;
}
- if ((n_ports = raw1394_get_port_info (handle, pinf, 16)) < 0) {
+ if (raw1394_get_port_info (handle, pinf, 16) < 0) {
GST_WARNING ("raw1394 - failed to get port info: %s.\n",
strerror (errno));
goto next;