summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
diff options
context:
space:
mode:
authorRafael Antognolli <antognolli@gmail.com>2012-03-23 20:18:22 +0000
committerRafael Antognolli <antognolli@gmail.com>2012-03-23 20:18:22 +0000
commitc40be46fc4a0c7bc66ccee684c2d6f2ad9450d28 (patch)
tree4ef80d5dea887c9e97f674491f07ee2cbf2dd1e0 /legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
parenta39a4f612e629509bcc457855bb769b53df4fe57 (diff)
emotion/generic-vlc: Change playing position before start playing.
This will avoid that a video that reached its end starts playing from that end when started again. SVN revision: 69592
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c2
1 files changed, 1 insertions, 1 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 266ae65019..72649ace9b 100644
--- a/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
+++ b/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
@@ -310,8 +310,8 @@ _play(struct _App *app)
310 else 310 else
311 { 311 {
312 libvlc_time_t new_time = pos * 1000; 312 libvlc_time_t new_time = pos * 1000;
313 libvlc_media_player_play(app->mp);
314 libvlc_media_player_set_time(app->mp, new_time); 313 libvlc_media_player_set_time(app->mp, new_time);
314 libvlc_media_player_play(app->mp);
315 app->playing = 1; 315 app->playing = 1;
316 } 316 }
317} 317}