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-21 09:17:38 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-08-21 09:17:38 +0000
commit36bc7b270b9a50ad274699362b9986681e7a8210 (patch)
tree2d5ef18d51df6d0af0d1063c24df121778c65eee /legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
parent3ec12202f9f65bbde1f8092604ec15a969e01f06 (diff)
emotion: fix priority_set/get
Patch by Sohyun Kim <anna1014.kim@samsung.com> SVN revision: 75495
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c14
1 files changed, 11 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..f41506491e 100644
--- a/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
+++ b/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
@@ -25,6 +25,7 @@ enum _Thread_Events {
25 EM_THREAD_POSITION_CHANGED, 25 EM_THREAD_POSITION_CHANGED,
26 EM_THREAD_PLAYBACK_STARTED, 26 EM_THREAD_PLAYBACK_STARTED,
27 EM_THREAD_PLAYBACK_STOPPED, 27 EM_THREAD_PLAYBACK_STOPPED,
28 EM_THREAD_EOF,
28 EM_THREAD_LAST 29 EM_THREAD_LAST
29}; 30};
30 31
@@ -311,6 +312,7 @@ _play(struct _App *app)
311 else 312 else
312 { 313 {
313 libvlc_time_t new_time = pos * 1000; 314 libvlc_time_t new_time = pos * 1000;
315 fprintf(stderr, "pos %f\n", pos);
314 libvlc_media_player_set_time(app->mp, new_time); 316 libvlc_media_player_set_time(app->mp, new_time);
315 libvlc_media_player_play(app->mp); 317 libvlc_media_player_play(app->mp);
316 app->playing = 1; 318 app->playing = 1;
@@ -371,9 +373,11 @@ _event_cb(const struct libvlc_event_t *ev, void *data)
371 _send_file_set(app); 373 _send_file_set(app);
372 break; 374 break;
373 case libvlc_MediaPlayerEndReached: 375 case libvlc_MediaPlayerEndReached:
374 thread_event = EM_THREAD_PLAYBACK_STOPPED; 376 thread_event = EM_THREAD_EOF;
375 write(app->fd_write, &thread_event, sizeof(thread_event)); 377 write(app->fd_write, &thread_event, sizeof(thread_event));
376 break; 378 /* thread_event = EM_THREAD_PLAYBACK_STOPPED; */
379 /* write(app->fd_write, &thread_event, sizeof(thread_event)); */
380 break;
377 } 381 }
378} 382}
379 383
@@ -739,6 +743,10 @@ _process_thread_events(struct _App *app)
739 case EM_THREAD_PLAYBACK_STARTED: 743 case EM_THREAD_PLAYBACK_STARTED:
740 _send_cmd(app, EM_RESULT_PLAYBACK_STARTED); 744 _send_cmd(app, EM_RESULT_PLAYBACK_STARTED);
741 break; 745 break;
746 case EM_THREAD_EOF:
747 _send_cmd(app, EM_RESULT_FILE_EOF);
748 app->playing = 0;
749 break;
742 case EM_THREAD_PLAYBACK_STOPPED: 750 case EM_THREAD_PLAYBACK_STOPPED:
743 libvlc_media_player_stop(app->mp); 751 libvlc_media_player_stop(app->mp);
744 app->playing = 0; 752 app->playing = 0;