]> git.sesse.net Git - vlc/commitdiff
demux/dummy: No need to check for playlist availability. (Also fix #1543)
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 13 Jun 2008 21:01:08 +0000 (23:01 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 13 Jun 2008 21:04:09 +0000 (23:04 +0200)
This is a bit contriversial, but libvlc actually uses vlc://nop, and this without a playlist.

modules/misc/dummy/input.c

index 64ba12dde34d2412b8dee6be5c09de8908b64f8d..8ee7001105e0446779810e6fe50aefef098a7ca5 100644 (file)
@@ -203,11 +203,8 @@ void CloseDemux ( vlc_object_t *p_this )
 static int Demux( demux_t *p_demux )
 {
     demux_sys_t *p_sys = p_demux->p_sys;
-    playlist_t *p_playlist;
     bool b_eof = false;
 
-    p_playlist = pl_Yield( p_demux );
-
     switch( p_sys->i_command )
     {
         case COMMAND_QUIT:
@@ -228,7 +225,6 @@ static int Demux( demux_t *p_demux )
             break;
     }
 
-    vlc_object_release( p_playlist );
     return b_eof ? 0 : 1;
 }