/*===========================================================================================
| |
| FUNCTION DEFINITIONS |
-| |
+| |
========================================================================================== */
int mm_player_mused_create(MMHandleType *player)
{
static gboolean initialized = FALSE;
static const int max_argc = 50;
- gint* argc = NULL;
+ gint* argc = NULL;
gchar** argv = NULL;
gchar** argv2 = NULL;
GError *err = NULL;
wl_surface );
/* After setting window handle, set render rectangle */
gst_video_overlay_set_render_rectangle(
- GST_VIDEO_OVERLAY( mainbin[MMPLAYER_M_V_SINK].gst ),
- wl_window_x,wl_window_y,wl_window_width,wl_window_height);
+ GST_VIDEO_OVERLAY( mainbin[MMPLAYER_M_V_SINK].gst ),
+ wl_window_x,wl_window_y,wl_window_width,wl_window_height);
#else
int xwin_id = 0;
xwin_id = *(int*)surface;
debug_log("pos: [%d/%d] msec\n", position, duration);
* @endcode
*/
-int mm_player_get_position(MMHandleType player, MMPlayerPosFormatType format, int *pos);
+int mm_player_get_position(MMHandleType player, MMPlayerPosFormatType format, unsigned long *pos);
/**
* This function is to get current buffer position of playback content.
debug_log("buffer position: [%d] ~ [%d] \%\n", start_pos, stop_pos );
* @endcode
*/
-int mm_player_get_buffer_position(MMHandleType player, MMPlayerPosFormatType format, int *start_pos, int *stop_pos);
+int mm_player_get_buffer_position(MMHandleType player, MMPlayerPosFormatType format, unsigned long *start_pos, unsigned long *stop_pos);
/**
* This function is to activate the section repeat. If it's set, selected section will be played \n
/*===========================================================================================
| |
| INCLUDE FILES |
-| |
+| |
========================================================================================== */
#include <glib.h>
#include <gst/gst.h>
return result;
}
-int mm_player_get_position(MMHandleType player, MMPlayerPosFormatType format, int *pos)
+int mm_player_get_position(MMHandleType player, MMPlayerPosFormatType format, unsigned long *pos)
{
int result = MM_ERROR_NONE;
MMPLAYER_CMD_LOCK( player );
- result = _mmplayer_get_position(player, (int)format, (unsigned long*)pos);
+ result = _mmplayer_get_position(player, (int)format, pos);
MMPLAYER_CMD_UNLOCK( player );
return result;
}
-int mm_player_get_buffer_position(MMHandleType player, MMPlayerPosFormatType format, int *start_pos, int *stop_pos)
+int mm_player_get_buffer_position(MMHandleType player, MMPlayerPosFormatType format, unsigned long *start_pos, unsigned long *stop_pos)
{
int result = MM_ERROR_NONE;
MMPLAYER_CMD_LOCK( player );
- result = _mmplayer_get_buffer_position(player, (int)format, (unsigned long*)start_pos, (unsigned long*)stop_pos );
+ result = _mmplayer_get_buffer_position(player, (int)format, start_pos, stop_pos );
MMPLAYER_CMD_UNLOCK( player );
#include "mm_player_priv.h"
/*---------------------------------------------------------------------------------------
-| LOCAL FUNCTION PROTOTYPES: |
+| LOCAL FUNCTION PROTOTYPES: |
---------------------------------------------------------------------------------------*/
/* It's callback to process whenever there is some changes in PD downloader. */
static gboolean __pd_downloader_post_message(mm_player_t * player, enum MMMessageType msgtype, MMMessageParamType* param);
/*=======================================================================================
-| FUNCTION DEFINITIONS |
+| FUNCTION DEFINITIONS |
=======================================================================================*/
static gboolean
__pd_downloader_callback(GstBus *bus, GstMessage *msg, gpointer data)
break;
/* we only care about pipeline state changes */
- if (GST_MESSAGE_SRC (msg) != GST_OBJECT (pd->downloader_pipeline))
- break;
+ if (GST_MESSAGE_SRC (msg) != GST_OBJECT (pd->downloader_pipeline))
+ break;
src_name = gst_object_get_name (msg->src);
debug_log ("%s changed state from %s to %s", src_name,
/*===========================================================================================
| |
| INCLUDE FILES |
-| |
+| |
========================================================================================== */
#include <glib.h>
#include <gst/gst.h>
/*===========================================================================================
| |
| LOCAL DEFINITIONS AND DECLARATIONS FOR MODULE |
-| |
+| |
========================================================================================== */
/*---------------------------------------------------------------------------
#define TRICK_PLAY_MUTE_THRESHOLD_MAX 2.0
#define TRICK_PLAY_MUTE_THRESHOLD_MIN 0.0
-#define MM_VOLUME_FACTOR_DEFAULT 1.0
+#define MM_VOLUME_FACTOR_DEFAULT 1.0
#define MM_VOLUME_FACTOR_MIN 0
#define MM_VOLUME_FACTOR_MAX 1.0
/*===========================================================================================
| |
| FUNCTION DEFINITIONS |
-| |
+| |
========================================================================================== */
#if 0 //debug
__mmplayer_videostream_cb(GstElement *element, void *data,
int width, int height, gpointer user_data) // @
{
- mm_player_t* player = (mm_player_t*)user_data;
+ mm_player_t* player = (mm_player_t*)user_data;
return_if_fail ( player );
stream.height = height;
stream.width = width;
player->video_stream_cb(&stream, player->video_stream_cb_user_param);
- }
+ }
MMPLAYER_FLEAVE();
}
/* initialize factories if not using decodebin */
if( player->factories == NULL )
- __mmplayer_init_factories(player);
+ __mmplayer_init_factories(player);
/* create lock. note that g_tread_init() has already called in gst_init() */
g_mutex_init(&player->fsink_lock);
{
mm_player_t* player = (mm_player_t*)hplayer;
- return_val_if_fail(player, MM_ERROR_PLAYER_NOT_INITIALIZED);
+ return_val_if_fail(player, MM_ERROR_PLAYER_NOT_INITIALIZED);
return __gst_set_message_callback(player, callback, user_param);
}