0001-m3u-Don-t-probe-a-NULL-input.patch

Download Raw Clone


  1. From abf981e19791c2f356be5b6541e095ce2061839a Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= <[email protected]>
  3. Date: Tue, 12 Feb 2019 09:47:30 +0100
  4. Subject: [PATCH] m3u: Don't probe a NULL input
  5. This fixes a crash when reading a playlist through a vlc_stream_t
  6. ---
  7. modules/demux/playlist/m3u.c | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/modules/demux/playlist/m3u.c b/modules/demux/playlist/m3u.c
  10. index 9fff1f0ff3..9bd2537979 100644
  11. --- a/modules/demux/playlist/m3u.c
  12. +++ b/modules/demux/playlist/m3u.c
  13. @@ -225,7 +225,7 @@ static int ReadDir( stream_t *p_demux, input_item_node_t *p_subitems )
  14. bool b_cleanup = false;
  15. input_item_t *p_input;
  16. - input_item_t *p_current_input = GetCurrentItem(p_demux);
  17. + input_item_t *p_current_input = p_demux->p_input ? GetCurrentItem(p_demux) : NULL;
  18. psz_line = vlc_stream_ReadLine( p_demux->p_source );
  19. while( psz_line )
  20. --
  21. 2.20.1

Raw paste data: