*/
typedef enum {
MM_PLAYER_TRACK_TYPE_AUDIO = 0,
+#if (defined _USE_M_V_INPUT_SELECTOR_ || defined TEST_ES)
MM_PLAYER_TRACK_TYPE_VIDEO,
+#endif
MM_PLAYER_TRACK_TYPE_TEXT,
MM_PLAYER_TRACK_TYPE_MAX
}MMPlayerTrackType;
MMPlayerTrackType streamtype = MM_PLAYER_TRACK_TYPE_AUDIO;
media_format_h fmt = NULL;
- return_val_if_fail (player, MM_ERROR_PLAYER_NOT_INITIALIZED);
return_val_if_fail (packet, MM_ERROR_INVALID_ARGUMENT);
+ return_val_if_fail ( player &&
+ player->pipeline &&
+ player->pipeline->mainbin &&
+ player->pipeline->mainbin[MMPLAYER_M_SRC].gst,
+ MM_ERROR_PLAYER_INTERNAL );
/* get data */
media_packet_get_buffer_data_ptr (packet, (void **) &buf);