summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-08-28 09:17:34 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-08-28 09:17:34 +0000
commit97aec1869f7611f16b23f0d66a3539b71ebd9a59 (patch)
treea319b603479428d0992fe755e3b7fe32db2a602a /legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
parent635a17d05739a9f478725e8d68dc47dca25dac1a (diff)
emotion: reset VLC pipeline on EOS.
NOTE: I gave up and completely restart the child, seems like the only reliable way to do it. SVN revision: 75769
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c b/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
index 7ec0a6f6c2..583036df6f 100644
--- a/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
+++ b/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
@@ -312,7 +312,7 @@ _play(struct _App *app)
312 { 312 {
313 libvlc_time_t new_time = pos * 1000; 313 libvlc_time_t new_time = pos * 1000;
314 libvlc_media_player_set_time(app->mp, new_time); 314 libvlc_media_player_set_time(app->mp, new_time);
315 libvlc_media_player_play(app->mp); 315 libvlc_media_player_play(app->mp);
316 app->playing = 1; 316 app->playing = 1;
317 } 317 }
318} 318}
@@ -395,8 +395,8 @@ _file_set(struct _App *app)
395 fprintf(stderr, "could not open path: \"%s\"\n", app->filename); 395 fprintf(stderr, "could not open path: \"%s\"\n", app->filename);
396 return; 396 return;
397 } 397 }
398 app->mp = libvlc_media_player_new_from_media(app->m);
399 398
399 app->mp = libvlc_media_player_new_from_media(app->m);
400 if (!app->mp) 400 if (!app->mp)
401 { 401 {
402 fprintf(stderr, "could not create new player from media.\n"); 402 fprintf(stderr, "could not create new player from media.\n");
@@ -740,7 +740,6 @@ _process_thread_events(struct _App *app)
740 _send_cmd(app, EM_RESULT_PLAYBACK_STARTED); 740 _send_cmd(app, EM_RESULT_PLAYBACK_STARTED);
741 break; 741 break;
742 case EM_THREAD_PLAYBACK_STOPPED: 742 case EM_THREAD_PLAYBACK_STOPPED:
743 libvlc_media_player_stop(app->mp);
744 app->playing = 0; 743 app->playing = 0;
745 _send_cmd(app, EM_RESULT_PLAYBACK_STOPPED); 744 _send_cmd(app, EM_RESULT_PLAYBACK_STOPPED);
746 break; 745 break;