[vlc-commits] m3u: Don't probe a NULL input
Hugo Beauzée-Luyssen
git at videolan.org
Tue Feb 12 10:19:44 CET 2019
vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Feb 12 09:47:30 2019 +0100| [488d9f44d659a9fee41fa889b35432fd84f0170c] | committer: Hugo Beauzée-Luyssen
m3u: Don't probe a NULL input
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=488d9f44d659a9fee41fa889b35432fd84f0170c
---
modules/demux/playlist/m3u.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/playlist/m3u.c b/modules/demux/playlist/m3u.c
index 9fff1f0ff3..9bd2537979 100644
--- a/modules/demux/playlist/m3u.c
+++ b/modules/demux/playlist/m3u.c
@@ -225,7 +225,7 @@ static int ReadDir( stream_t *p_demux, input_item_node_t *p_subitems )
bool b_cleanup = false;
input_item_t *p_input;
- input_item_t *p_current_input = GetCurrentItem(p_demux);
+ input_item_t *p_current_input = p_demux->p_input ? GetCurrentItem(p_demux) : NULL;
psz_line = vlc_stream_ReadLine( p_demux->p_source );
while( psz_line )
More information about the vlc-commits
mailing list