mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
v4l2src-renegotiate: Don't leak pipeline desc string
This commit is contained in:
parent
3975e87136
commit
22a5f56f2a
1 changed files with 1 additions and 0 deletions
|
@ -135,6 +135,7 @@ main (gint argc, gchar ** argv)
|
|||
desc = g_strdup_printf ("v4l2src name=src device=\"%s\" io-mode=\"%s\" "
|
||||
"! capsfilter name=cf ! %s", device, io_mode, videosink);
|
||||
pipeline = gst_parse_launch (desc, &error);
|
||||
g_free (desc);
|
||||
if (!pipeline) {
|
||||
g_print ("failed to create pipeline: %s", error->message);
|
||||
g_error_free (error);
|
||||
|
|
Loading…
Reference in a new issue