diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-06-08 13:31:27 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-06-08 13:31:27 +0000 |
commit | fe266412d942df50fbe0df03ed79b3e8ee2865c0 (patch) | |
tree | 4cb02e97ad994d5bb3771eee31f7129c437fd444 | |
parent | 9b1645814e4026694a7eaad57d7c43716d643cf4 (diff) |
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)
-rw-r--r-- | ext/ffmpeg/gstffmpegprotocol.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/ffmpeg/gstffmpegprotocol.c b/ext/ffmpeg/gstffmpegprotocol.c index edfa4a4..a675bcd 100644 --- a/ext/ffmpeg/gstffmpegprotocol.c +++ b/ext/ffmpeg/gstffmpegprotocol.c @@ -50,7 +50,12 @@ gst_open (URLContext *h, const char *filename, int flags) info = g_new0 (GstProtocolInfo, 1); 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]); return -EIO; } |