Mercurial > mplayer.hg
comparison gui/ui/gtk/playlist.c @ 35483:8ac7761bcb7c
Clear information associated with a file when setting a new one.
This fixes showing wrong information when jumping through the
playlist tracks in stop mode.
author | ib |
---|---|
date | Mon, 03 Dec 2012 14:04:43 +0000 |
parents | 0583b12e11d7 |
children | 7b090d0f253b |
comparison
equal
deleted
inserted
replaced
35482:0477dcdcd6d6 | 35483:8ac7761bcb7c |
---|---|
229 item = NULL; | 229 item = NULL; |
230 } | 230 } |
231 } | 231 } |
232 if ( item ) | 232 if ( item ) |
233 { | 233 { |
234 uiUnsetFile(); | |
235 uiSetFile( item->path,item->name,STREAMTYPE_FILE ); | 234 uiSetFile( item->path,item->name,STREAMTYPE_FILE ); |
236 guiInfo.NewPlay = GUI_FILE_NEW; | 235 guiInfo.NewPlay = GUI_FILE_NEW; |
237 guiInfo.PlaylistNext = (curr.name ? 0 : 1); | 236 guiInfo.PlaylistNext = (curr.name ? 0 : 1); |
238 guiInfo.Track = 1; | 237 guiInfo.Track = 1; |
239 } | 238 } |