$OpenBSD: patch-src_xitk_network_c,v 1.1 2019/12/28 10:08:17 ajacoutot Exp $

Fix some crashes.

Eg, when starting a playlist while already playing something else.

Index: src/xitk/network.c
--- src/xitk/network.c.orig
+++ src/xitk/network.c
@@ -2016,7 +2016,7 @@ static void do_playlist(const commands_t *cmd, client_
 	  if(j >= 0) {
 
 	    if((gui->playlist.cur == j) && ((xine_get_status(gui->stream) != XINE_STATUS_STOP)))
-	      gui_stop(NULL, NULL);
+	      gui_stop(NULL, gui);
 	    
 	    mediamark_free_entry(j);
 	    
@@ -2044,7 +2044,7 @@ static void do_playlist(const commands_t *cmd, client_
             enable_playback_controls (gui->panel, 0);
 	  
 	  if(xine_get_status(gui->stream) != XINE_STATUS_STOP)
-	    gui_stop(NULL, NULL);
+	    gui_stop(NULL, gui);
 	  
 	  gui_set_current_mmk(NULL);
 	}
