Discussion:
[PATCH] vorbis: return with different error message
Johannes Weißl
2011-04-13 21:36:41 UTC
Permalink
This way the ffmpeg fallback is activated, which can read more codecs
than just vorbis.
---
vorbis.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/vorbis.c b/vorbis.c
index 87dded6..aa6a375 100644
--- a/vorbis.c
+++ b/vorbis.c
@@ -117,7 +117,9 @@ static int vorbis_open(struct input_plugin_data *ip_data)
if (rc != 0) {
d_print("ov_open failed: %d\n", rc);
free(priv);
- return -IP_ERROR_FILE_FORMAT;
+ /* ogg is a container format, so it is likely to contain
+ * something else if it isn't vorbis */
+ return -IP_ERROR_UNSUPPORTED_FILE_TYPE;
}
ip_data->private = priv;
--
1.7.4.1
Gregory Petrosyan
2011-04-16 13:26:29 UTC
Permalink
Post by Johannes Weißl
This way the ffmpeg fallback is activated, which can read more codecs
than just vorbis.
Merged to master, thanks!

Gregory

Loading...