Mercurial > audlegacy
comparison src/audacious/playback.c @ 4530:d2fd41d3964e
Stop playback (instead of doing endless loop) when file can't be read
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Fri, 02 May 2008 10:34:07 +0200 |
parents | a849b8af8db6 |
children | 024be3d7ef4c |
comparison
equal
deleted
inserted
replaced
4529:6cf91e97c6d5 | 4530:d2fd41d3964e |
---|---|
174 if (playback_get_playing()) | 174 if (playback_get_playing()) |
175 playback_stop(); | 175 playback_stop(); |
176 | 176 |
177 entry = playlist_get_entry_to_play(playlist); | 177 entry = playlist_get_entry_to_play(playlist); |
178 g_return_if_fail(entry != NULL); | 178 g_return_if_fail(entry != NULL); |
179 | |
180 if (!playback_play_file(entry)) | |
181 return; | |
182 | |
179 #ifdef USE_DBUS | 183 #ifdef USE_DBUS |
180 mpris_emit_track_change(mpris); | 184 mpris_emit_track_change(mpris); |
181 #endif | 185 #endif |
182 playback_play_file(entry); | |
183 | 186 |
184 playlist_check_pos_current(playlist); | 187 playlist_check_pos_current(playlist); |
185 | 188 |
186 hook_call("playback begin", entry); | 189 hook_call("playback begin", entry); |
187 } | 190 } |
383 entry->decoder = pr->ip; | 386 entry->decoder = pr->ip; |
384 entry->tuple = pr->tuple; | 387 entry->tuple = pr->tuple; |
385 | 388 |
386 g_free(pr); | 389 g_free(pr); |
387 } | 390 } |
391 else | |
392 { | |
393 mainwin_stop_pushed(); | |
394 return FALSE; | |
395 } | |
388 } | 396 } |
389 | 397 |
390 if (!entry->decoder || !entry->decoder->enabled) | 398 if (!entry->decoder || !entry->decoder->enabled) |
391 { | 399 { |
392 set_current_input_playback(NULL); | 400 set_current_input_playback(NULL); |