# HG changeset patch # User ib # Date 1387319233 0 # Node ID 514b38743990e9683316967041f8cb6eeb6e1710 # Parent c9fb71a139bb004c69c92325310a85bd33122772 Fix small bug with GUI_SET_STREAM. In case we've selected a playlist, we should "ignore" the passed data. diff -r c9fb71a139bb -r 514b38743990 gui/interface.c --- a/gui/interface.c Tue Dec 17 22:18:13 2013 +0000 +++ b/gui/interface.c Tue Dec 17 22:27:13 2013 +0000 @@ -305,11 +305,11 @@ */ int gui(int what, void *data) { - stream_t *stream; #ifdef CONFIG_DVDREAD dvd_priv_t *dvd; #endif int msg, state; + stream_t *stream = NULL; sh_audio_t *sh_audio; mixer_t *mixer; plItem *next = NULL; @@ -602,9 +602,10 @@ if (guiInfo.StreamType == STREAMTYPE_PLAYLIST) guiInfo.mpcontext->file_format = DEMUXER_TYPE_PLAYLIST; - + else { stream = data; guiInfo.StreamType = stream->type; + } switch (guiInfo.StreamType) { case STREAMTYPE_FILE: