diff options
author | Luis de Bethencourt <luis.bg@samsung.com> | 2015-02-21 17:02:09 +0000 |
---|---|---|
committer | Luis de Bethencourt <luis.bg@samsung.com> | 2015-02-21 17:02:18 +0000 |
commit | 9454e42db091c24938e3f86fd3696f26bfabd3d4 (patch) | |
tree | cfe22ff96ff47dd52da166b0c5ca61fd1c578b13 /tests | |
parent | 3baa710638428b9ef436bc2fca725ce2c08a5cf9 (diff) | |
download | gstreamer-plugins-bad-9454e42db091c24938e3f86fd3696f26bfabd3d4.tar.gz |
camerabin examples: remove unneeded variable
ret is only used once, we don't need to store it in a variable for that.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examples/camerabin2/gst-camera2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/examples/camerabin2/gst-camera2.c b/tests/examples/camerabin2/gst-camera2.c index 2eb544cf4..0bb986930 100644 --- a/tests/examples/camerabin2/gst-camera2.c +++ b/tests/examples/camerabin2/gst-camera2.c @@ -104,8 +104,9 @@ create_mp4_profile (void) GstEncodingContainerProfile *container; GstCaps *caps = NULL; - caps = gst_caps_new_simple ("video/quicktime", "variant", G_TYPE_STRING, "iso", - NULL); + caps = + gst_caps_new_simple ("video/quicktime", "variant", G_TYPE_STRING, "iso", + NULL); container = gst_encoding_container_profile_new ("mp4", NULL, caps, NULL); gst_caps_unref (caps); @@ -299,7 +300,6 @@ init_gtkwidgets_data (void) int main (int argc, char *argv[]) { - int ret = 0; GError *error = NULL; GstBus *bus; @@ -334,5 +334,5 @@ main (int argc, char *argv[]) error: gst_element_set_state (camera, GST_STATE_NULL); gst_object_unref (camera); - return ret; + return 0; } |