mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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;
|
GstEncodingContainerProfile *container;
|
||||||
GstCaps *caps = NULL;
|
GstCaps *caps = NULL;
|
||||||
|
|
||||||
caps = gst_caps_new_simple ("video/quicktime", "variant", G_TYPE_STRING, "iso",
|
caps =
|
||||||
NULL);
|
gst_caps_new_simple ("video/quicktime", "variant", G_TYPE_STRING, "iso",
|
||||||
|
NULL);
|
||||||
container = gst_encoding_container_profile_new ("mp4", NULL, caps, NULL);
|
container = gst_encoding_container_profile_new ("mp4", NULL, caps, NULL);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
|
@ -299,7 +300,6 @@ init_gtkwidgets_data (void)
|
||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int ret = 0;
|
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
GstBus *bus;
|
GstBus *bus;
|
||||||
|
|
||||||
|
@ -334,5 +334,5 @@ main (int argc, char *argv[])
|
||||||
error:
|
error:
|
||||||
gst_element_set_state (camera, GST_STATE_NULL);
|
gst_element_set_state (camera, GST_STATE_NULL);
|
||||||
gst_object_unref (camera);
|
gst_object_unref (camera);
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue