[vlc-commits] Fixed the return value of STREAM_GET_CONTENT_TYPE in the rar stream_filter.

Laurent Aimar git at videolan.org
Sun Dec 11 23:35:29 CET 2011


vlc/vlc-1.2 | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Dec 11 11:42:43 2011 +0100| [83d10ccf1989f2075a176bd92d9ed1aacff1257c] | committer: Jean-Baptiste Kempf

Fixed the return value of STREAM_GET_CONTENT_TYPE in the rar stream_filter.
(cherry picked from commit 63fafad4ad2963880aa814ae35ec4f3f217e1f76)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=83d10ccf1989f2075a176bd92d9ed1aacff1257c
---

 modules/access/rar/stream.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/rar/stream.c b/modules/access/rar/stream.c
index fcf9180..3b9aa13 100644
--- a/modules/access/rar/stream.c
+++ b/modules/access/rar/stream.c
@@ -76,7 +76,7 @@ static int Control(stream_t *s, int query, va_list args)
     case STREAM_GET_CONTENT_TYPE: {
         char **mime = va_arg(args, char **);
         *mime = strdup("audio/x-mpegurl");
-        return VLC_EGENERIC;
+        return VLC_SUCCESS;
     }
     default:
         return stream_vaControl(s->p_sys->payload, query, args);



More information about the vlc-commits mailing list