From 86aca17be19ac4cd3b87fcf5d52b225563728cef Mon Sep 17 00:00:00 2001 From: Younghwan Ahn Date: Mon, 3 Sep 2012 18:38:24 +0900 Subject: sync with private (add mm_player_get_track_count, seek check bug) --- src/include/mm_player_priv.h | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) (limited to 'src/include/mm_player_priv.h') diff --git a/src/include/mm_player_priv.h b/src/include/mm_player_priv.h index 499aee9..3a29bfc 100755 --- a/src/include/mm_player_priv.h +++ b/src/include/mm_player_priv.h @@ -198,21 +198,31 @@ enum VideoElementID }; /* text pipeline's element id */ -enum SubtitleElementID +enum TextElementID { - MMPLAYER_T_PIPE = 0, /* NOTE : MMPLAYER_T_PIPE should be zero */ - MMPLAYER_T_SRC, + MMPLAYER_T_BIN = 0, /* NOTE : MMPLAYER_V_BIN should be zero */ MMPLAYER_T_QUEUE, - MMPLAYER_T_SUBPARSE, - MMPLAYER_T_TEXTRENDER, - MMPLAYER_T_FLIP, - MMPLAYER_T_CONV1, - MMPLAYER_T_CONV2, - MMPLAYER_T_SCALE, + MMPLAYER_T_OVERLAY, MMPLAYER_T_SINK, MMPLAYER_T_NUM }; +/* subtitle pipeline's element id */ +enum SubtitleElementID +{ + MMPLAYER_SUB_PIPE = 0, /* NOTE : MMPLAYER_SUB_PIPE should be zero */ + MMPLAYER_SUB_SRC, + MMPLAYER_SUB_QUEUE, + MMPLAYER_SUB_SUBPARSE, + MMPLAYER_SUB_TEXTRENDER, + MMPLAYER_SUB_FLIP, + MMPLAYER_SUB_CONV1, + MMPLAYER_SUB_CONV2, + MMPLAYER_SUB_SCALE, + MMPLAYER_SUB_SINK, + MMPLAYER_SUB_NUM +}; + /* midi main pipeline's element id */ enum MidiElementID { @@ -304,6 +314,7 @@ typedef struct { GstTagList *tag_list; MMPlayerGstElement *mainbin; + MMPlayerGstElement *subtitlebin; MMPlayerGstElement *audiobin; MMPlayerGstElement *videobin; MMPlayerGstElement *textbin; @@ -536,6 +547,7 @@ typedef struct { gint audiodec_linked; gint videosink_linked; gint audiosink_linked; + gint textsink_linked; /* missing plugin during autoplugging */ MissingCodec not_supported_codec; @@ -553,7 +565,7 @@ typedef struct { /* support seek even though player is not start */ MMPlayerPendingSeek pending_seek; - gboolean is_seeking; + gboolean doing_seek; /* prevent to post msg over and over */ gboolean posted_msg; -- cgit v1.2.3