4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: JongHyuk Choi <jhchoi.choi@samsung.com>, YeJin Cho <cho.yejin@samsung.com>,
7 * YoungHwan An <younghwan_.an@samsung.com>
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
23 #ifndef __MM_PLAYER_TRACKS_H__
24 #define __MM_PLAYER_TRACKS_H__
26 #include "mm_player_priv.h"
32 #define DEFAULT_TRACK 0
34 void __mmplayer_track_initialize(mmplayer_t *player);
36 void __mmplayer_track_destroy(mmplayer_t *player);
38 void __mmplayer_track_update_selector_info(mmplayer_t *player, mmplayer_track_type_e type, GstPad *sinkpad);
40 void __mmplayer_track_update_text_attr_info(mmplayer_t *player, GstMessage *msg);
42 int _mmplayer_get_track_count(MMHandleType hplayer, mmplayer_track_type_e type, int *count);
44 int _mmplayer_select_track(MMHandleType hplayer, mmplayer_track_type_e type, int index);
46 int _mmplayer_get_track_language_code(MMHandleType hplayer, mmplayer_track_type_e type, int index, char **code);
48 int _mmplayer_get_current_track(MMHandleType hplayer, mmplayer_track_type_e type, int *index);
53 #endif /* __MM_PLAYER_TRACKS_H__ */