mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 20:59:44 +00:00
gst/elements/gstfdsrc.c: Don't ignore sscanf results
Original commit message from CVS: * gst/elements/gstfdsrc.c: (gst_fdsrc_uri_set_uri): Don't ignore sscanf results
This commit is contained in:
parent
ad7585d432
commit
9409e07440
3 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-11-21 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
|
* gst/elements/gstfdsrc.c: (gst_fdsrc_uri_set_uri):
|
||||||
|
Don't ignore sscanf results
|
||||||
|
|
||||||
2005-11-21 Andy Wingo <wingo@pobox.com>
|
2005-11-21 Andy Wingo <wingo@pobox.com>
|
||||||
|
|
||||||
* gst/gstpad.h (GST_IS_PAD_FAST): Removed.
|
* gst/gstpad.h (GST_IS_PAD_FAST): Removed.
|
||||||
|
|
|
@ -396,7 +396,10 @@ gst_fdsrc_uri_set_uri (GstURIHandler * handler, const gchar * uri)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
g_free (protocol);
|
g_free (protocol);
|
||||||
sscanf (uri, "fd://%d", &fd);
|
|
||||||
|
if (sscanf (uri, "fd://%d", &fd) != 1)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
src->fd = fd;
|
src->fd = fd;
|
||||||
g_free (src->uri);
|
g_free (src->uri);
|
||||||
src->uri = g_strdup (uri);
|
src->uri = g_strdup (uri);
|
||||||
|
|
|
@ -396,7 +396,10 @@ gst_fdsrc_uri_set_uri (GstURIHandler * handler, const gchar * uri)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
g_free (protocol);
|
g_free (protocol);
|
||||||
sscanf (uri, "fd://%d", &fd);
|
|
||||||
|
if (sscanf (uri, "fd://%d", &fd) != 1)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
src->fd = fd;
|
src->fd = fd;
|
||||||
g_free (src->uri);
|
g_free (src->uri);
|
||||||
src->uri = g_strdup (uri);
|
src->uri = g_strdup (uri);
|
||||||
|
|
Loading…
Reference in a new issue