2012-06-07 Cedric Bail
* Fix stride for all YUV video stream.
+
+2012-06-08 Pierre Le Magourou
+
+ * Add support for "playback_started" callback to generic player.
-------------------------
Additions:
+ - Add support for "playback_started" callback to generic player.
Fixes:
- build out of tree.
enum _Thread_Events {
EM_THREAD_POSITION_CHANGED,
+ EM_THREAD_PLAYBACK_STARTED,
EM_THREAD_PLAYBACK_STOPPED,
EM_THREAD_LAST
};
break;
case libvlc_MediaPlayerPlaying:
_send_resize(app, app->w, app->h);
+ thread_event = EM_THREAD_PLAYBACK_STARTED;
+ write(app->fd_write, &thread_event, sizeof(thread_event));
break;
case libvlc_MediaPlayerStopped:
_send_file_set(app);
case EM_THREAD_POSITION_CHANGED:
_position_changed(app);
break;
+ case EM_THREAD_PLAYBACK_STARTED:
+ _send_cmd(app, EM_RESULT_PLAYBACK_STARTED);
+ break;
case EM_THREAD_PLAYBACK_STOPPED:
libvlc_media_player_stop(app->mp);
app->playing = 0;
EM_RESULT_INIT = 0, // param: none
EM_RESULT_FILE_SET, // param: none
EM_RESULT_FILE_SET_DONE, // param: success (int)
+ EM_RESULT_PLAYBACK_STARTED, // param: none
EM_RESULT_PLAYBACK_STOPPED, // param: none
EM_RESULT_FILE_CLOSE, // param: none
EM_RESULT_FRAME_NEW, // param: none
case EM_RESULT_FILE_CLOSE:
_player_file_closed(ev);
break;
+ case EM_RESULT_PLAYBACK_STARTED:
+ _emotion_playback_started(ev->obj);
+ break;
case EM_RESULT_PLAYBACK_STOPPED:
_emotion_playback_finished(ev->obj);
break;
switch (ev->cmd.type) {
case EM_RESULT_INIT:
case EM_RESULT_FILE_SET:
+ case EM_RESULT_PLAYBACK_STARTED:
case EM_RESULT_PLAYBACK_STOPPED:
case EM_RESULT_FILE_CLOSE:
case EM_RESULT_FRAME_NEW: