mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
f it's an 'o', it's for output (muxing)
Original commit message from CVS: Change protocol slightly, if the first char is an 'i', it's input (demuxing), if it's an 'o', it's for output (muxing)
This commit is contained in:
parent
9b1645814e
commit
fe266412d9
1 changed files with 6 additions and 1 deletions
|
@ -50,7 +50,12 @@ gst_open (URLContext *h, const char *filename, int flags)
|
||||||
info = g_new0 (GstProtocolInfo, 1);
|
info = g_new0 (GstProtocolInfo, 1);
|
||||||
info->flags = flags;
|
info->flags = flags;
|
||||||
|
|
||||||
if (sscanf (&filename[12], "%p", &pad) != 1) {
|
if (filename[12] != 'i') {
|
||||||
|
g_warning("%s is no input: %c", filename, filename[12]);
|
||||||
|
return -EIO;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sscanf (&filename[14], "%p", &pad) != 1) {
|
||||||
g_warning ("could not decode pad from %s", &filename[12]);
|
g_warning ("could not decode pad from %s", &filename[12]);
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue