diff options
author | Stefan Kost <ensonic@users.sf.net> | 2009-07-20 16:21:06 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-07-20 16:42:43 +0300 |
commit | 64457575e7e096c02784aa207e92b2b2599fc13a (patch) | |
tree | a18d02eb1394232b770ee71ed1f368c93ac85e0c | |
parent | ebc417f769bffd7eaca260eac5358f953551868c (diff) | |
download | gst-plugins-bad-64457575e7e096c02784aa207e92b2b2599fc13a.tar.gz gst-plugins-bad-64457575e7e096c02784aa207e92b2b2599fc13a.tar.bz2 gst-plugins-bad-64457575e7e096c02784aa207e92b2b2599fc13a.zip |
camerabin: remove unused variable assignment
Result is not needed here, but variable is used later on. Also remove double new
lines in function.
-rw-r--r-- | gst/camerabin/camerabinvideo.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gst/camerabin/camerabinvideo.c b/gst/camerabin/camerabinvideo.c index 40a2bfa7..bc915243 100644 --- a/gst/camerabin/camerabinvideo.c +++ b/gst/camerabin/camerabinvideo.c @@ -553,7 +553,6 @@ gst_camerabin_video_create_elements (GstCameraBinVideo * vid) gst_ghost_pad_set_target (GST_GHOST_PAD (vid->sinkpad), vid_sinkpad); gst_object_unref (vid_sinkpad); - /* Add queue element for video */ vid->tee_video_srcpad = gst_element_get_request_pad (vid->tee, "src%d"); if (!(vid->video_queue = @@ -565,7 +564,6 @@ gst_camerabin_video_create_elements (GstCameraBinVideo * vid) gst_pad_add_buffer_probe (vid->tee_video_srcpad, G_CALLBACK (camerabin_video_pad_tee_src0_have_buffer), vid); - #ifdef USE_TIMEOVERLAY /* Add timeoverlay element to visualize elapsed time for debugging */ if (!(gst_camerabin_create_and_add_element (vidbin, "timeoverlay"))) { @@ -615,10 +613,9 @@ gst_camerabin_video_create_elements (GstCameraBinVideo * vid) } /* Add queue element for audio */ - if (!(queue = gst_camerabin_create_and_add_element (vidbin, "queue"))) { + if (!(gst_camerabin_create_and_add_element (vidbin, "queue"))) { goto error; } - queue = NULL; /* Add optional audio conversion and volume elements and raise no errors if adding them fails */ |