[vlc-commits] stream_filter: ifo: use VLC_EGENERIC

Francois Cartegnie git at videolan.org
Tue Feb 27 15:10:47 CET 2018


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb 27 14:15:58 2018 +0100| [cbbe5d6090c3b6dd00142b4bd8a7dfc9c4fa5c6b] | committer: Francois Cartegnie

stream_filter: ifo: use VLC_EGENERIC

(cherry picked from commit 20b7c98d5ca3c0247f1e76c65f26a98d4e4d69a5)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=cbbe5d6090c3b6dd00142b4bd8a7dfc9c4fa5c6b
---

 modules/demux/playlist/ifo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/playlist/ifo.c b/modules/demux/playlist/ifo.c
index 199b992649..c3269ccf50 100644
--- a/modules/demux/playlist/ifo.c
+++ b/modules/demux/playlist/ifo.c
@@ -102,7 +102,7 @@ static int ReadDVD( stream_t *p_stream, input_item_node_t *node )
     const char *psz_location = StreamLocation(p_stream);
 
     if( asprintf( &psz_url, "dvd://%s", psz_location ) == -1 )
-        return 0;
+        return VLC_EGENERIC;
 
     input_item_t *p_input = input_item_New( psz_url, psz_url );
     input_item_node_AppendItem( node, p_input );
@@ -121,7 +121,7 @@ static int ReadDVD_VR( stream_t *p_stream, input_item_node_t *node )
     char *psz_url = strdup( psz_location );
 
     if( unlikely( psz_url == NULL ) )
-        return 0;
+        return VLC_EGENERIC;
 
     strcpy( &psz_url[len - 12], "VR_MOVIE.VRO" );
 



More information about the vlc-commits mailing list