summaryrefslogtreecommitdiff
path: root/src
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
commit858e70bb1014c49266145905f8a8453194b0a6bd (patch)
tree3348ff6e7332ba91ce5c5fc8f5d5334073f6ea0f /src
parent13b6996ecd5d288709f182e68286eae742fadca7 (diff)
downloademotion_generic_players-858e70bb1014c49266145905f8a8453194b0a6bd.tar.gz
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 'src')
-rw-r--r--src/vlc/emotion_generic_vlc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vlc/emotion_generic_vlc.c b/src/vlc/emotion_generic_vlc.c
index 7ec0a6f..583036d 100644
--- a/src/vlc/emotion_generic_vlc.c
+++ b/src/vlc/emotion_generic_vlc.c
@@ -312,7 +312,7 @@ _play(struct _App *app)
{
libvlc_time_t new_time = pos * 1000;
libvlc_media_player_set_time(app->mp, new_time);
- libvlc_media_player_play(app->mp);
+ libvlc_media_player_play(app->mp);
app->playing = 1;
}
}
@@ -395,8 +395,8 @@ _file_set(struct _App *app)
fprintf(stderr, "could not open path: \"%s\"\n", app->filename);
return;
}
- app->mp = libvlc_media_player_new_from_media(app->m);
+ app->mp = libvlc_media_player_new_from_media(app->m);
if (!app->mp)
{
fprintf(stderr, "could not create new player from media.\n");
@@ -740,7 +740,6 @@ _process_thread_events(struct _App *app)
_send_cmd(app, EM_RESULT_PLAYBACK_STARTED);
break;
case EM_THREAD_PLAYBACK_STOPPED:
- libvlc_media_player_stop(app->mp);
app->playing = 0;
_send_cmd(app, EM_RESULT_PLAYBACK_STOPPED);
break;