mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 11:32:51 +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>
|
||||
|
||||
* gst/gstpad.h (GST_IS_PAD_FAST): Removed.
|
||||
|
|
|
@ -396,7 +396,10 @@ gst_fdsrc_uri_set_uri (GstURIHandler * handler, const gchar * uri)
|
|||
return FALSE;
|
||||
}
|
||||
g_free (protocol);
|
||||
sscanf (uri, "fd://%d", &fd);
|
||||
|
||||
if (sscanf (uri, "fd://%d", &fd) != 1)
|
||||
return FALSE;
|
||||
|
||||
src->fd = fd;
|
||||
g_free (src->uri);
|
||||
src->uri = g_strdup (uri);
|
||||
|
|
|
@ -396,7 +396,10 @@ gst_fdsrc_uri_set_uri (GstURIHandler * handler, const gchar * uri)
|
|||
return FALSE;
|
||||
}
|
||||
g_free (protocol);
|
||||
sscanf (uri, "fd://%d", &fd);
|
||||
|
||||
if (sscanf (uri, "fd://%d", &fd) != 1)
|
||||
return FALSE;
|
||||
|
||||
src->fd = fd;
|
||||
g_free (src->uri);
|
||||
src->uri = g_strdup (uri);
|
||||
|
|
Loading…
Reference in a new issue