mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
camerabin examples: remove unneeded variable
ret is only used once, we don't need to store it in a variable for that.
This commit is contained in:
parent
3baa710638
commit
9454e42db0
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue