[1.0.1] Remove unused reference to fix mem leak
[platform/core/multimedia/libmm-player.git] / src / include / mm_player_priv.h
index adb4636..c5fbb44 100644 (file)
@@ -29,6 +29,7 @@
 |                                                                                                                                                                              |
 ========================================================================================== */
 #include <glib.h>
+#include <gmodule.h>
 #include <gst/gst.h>
 #include <mm_attrs.h>
 #include <math.h>
@@ -165,7 +166,6 @@ typedef enum {
        /* it could be a decodebin or could be a typefind. depends on player ini */
        MMPLAYER_M_TYPEFIND,
        MMPLAYER_M_AUTOPLUG,
-       MMPLAYER_M_AUTOPLUG_PARSEBIN,
 
        MMPLAYER_M_AUTOPLUG_V_DEC,
        MMPLAYER_M_AUTOPLUG_A_DEC,
@@ -176,7 +176,6 @@ typedef enum {
        /* streaming plugin */
        MMPLAYER_M_MUXED_S_BUFFER,
        MMPLAYER_M_DEMUXED_S_BUFFER,
-       MMPLAYER_M_ID3DEMUX,
        MMPLAYER_M_ADAPTIVE_DEMUX,
 
        /* es buff src queue */
@@ -191,6 +190,7 @@ typedef enum {
        MMPLAYER_M_Q2,
        MMPLAYER_M_DEMUX,
        MMPLAYER_M_SUBPARSE,
+       MMPLAYER_M_V_PARSE,
        MMPLAYER_M_V_INPUT_SELECTOR,    // video input_select
        MMPLAYER_M_A_INPUT_SELECTOR,    // audio input_select
        MMPLAYER_M_T_INPUT_SELECTOR,    // text input_select
@@ -535,6 +535,19 @@ typedef struct {
 } mmplayer_spherical_metadata_t;
 
 typedef struct {
+       GModule *img_module;
+       GModule *imgp_module;
+       int  (*create)(unsigned int, unsigned int,
+                       int, const unsigned char *, size_t, void **);
+       void (*destroy)(void *);
+       int  (*get)(void *, unsigned int *, unsigned int *,
+                       int *, unsigned char **, size_t *);
+       void (*debug)(void *, const char *);
+       int  (*rotate)(void *, int, void **);
+       int  (*convert)(void *, int, void **);
+} mm_img_util_interface_t;
+
+typedef struct {
        /* STATE */
        int state;                                      // player current state
        int prev_state;                         // player previous state
@@ -566,6 +579,7 @@ typedef struct {
        mmplayer_video_capture_t capture;
        mmplayer_video_color_space_e video_cs;
        MMVideoBuffer captured;
+       mm_img_util_interface_t *img_util;
 
        /* gst bus msg thread, create during realize */
        GThread *bus_msg_thread;
@@ -625,8 +639,7 @@ typedef struct {
        mmplayer_sound_info_t   sound;
 
        /* type string */
-       gchar *type;
-       GstCaps *type_caps;
+       gchar *type_caps_str;
 
        /* video stream caps parsed by demuxer */
        GstCaps *v_stream_caps;
@@ -751,10 +764,6 @@ typedef struct {
        GCond subtitle_info_cond;
        GMutex subtitle_info_mutex;
 
-       /* stream collection */
-       GstStreamCollection *collection;
-       guint stream_notify_id;
-
        mmplayer_track_t track[MM_PLAYER_TRACK_TYPE_MAX];
 
        guint internal_text_idx;
@@ -875,7 +884,6 @@ int _mmplayer_get_adaptive_variant_info(MMHandleType hplayer, int *num, char **v
 int _mmplayer_set_max_adaptive_variant_limit(MMHandleType hplayer, int bandwidth, int width, int height);
 int _mmplayer_get_max_adaptive_variant_limit(MMHandleType hplayer, int *bandwidth, int *width, int *height);
 int _mmplayer_set_audio_only(MMHandleType hplayer, bool audio_only);
-int _mmplayer_get_audio_only(MMHandleType hplayer, bool *paudio_only);
 int _mmplayer_get_streaming_buffering_time(MMHandleType hplayer, int *prebuffer_ms, int *rebuffer_ms);
 int _mmplayer_set_codec_type(MMHandleType hplayer, mmplayer_stream_type_e stream_type, mmplayer_codec_type_e codec_type);
 int _mmplayer_set_replaygain_enabled(MMHandleType hplayer, bool enabled);
@@ -902,7 +910,7 @@ void _mmplayer_gst_decode_pad_added(GstElement *elem, GstPad *pad, gpointer data
 gint _mmplayer_gst_decode_autoplug_select(GstElement *bin,  GstPad *pad, GstCaps *caps, GstElementFactory *factory, gpointer data);
 GValueArray *_mmplayer_gst_decode_autoplug_sort(GstElement *bin, GstPad *pad, GstCaps *caps, GValueArray *factories, gpointer data);
 gboolean _mmplayer_gst_create_decoder(mmplayer_t *player, GstPad *srcpad, const GstCaps *caps);
-void _mmplayer_gst_element_added(GstElement *bin, GstElement *element, gpointer data);
+void _mmplayer_gst_element_added(GstBin *bin, GstElement *element, gpointer data);
 GstElement *_mmplayer_gst_make_decodebin(mmplayer_t *player);
 int _mmplayer_gst_element_add_bucket_to_bin(GstBin *bin, GList *element_bucket);
 int _mmplayer_gst_element_link_bucket(GList *element_bucket);
@@ -914,6 +922,7 @@ void _mmplayer_gst_decode_pad_removed(GstElement *elem, GstPad *new_pad, gpointe
 void _mmplayer_gst_decode_no_more_pads(GstElement *elem, gpointer data);
 void _mmplayer_gst_decode_drained(GstElement *bin, gpointer data);
 void _mmplayer_gst_about_to_finish(GstElement *bin, gpointer data);
+int _mmplayer_update_not_supported_codec_info(mmplayer_t *player, const gchar *factory_class, const gchar *mime);
 void _mmplayer_gst_decode_unknown_type(GstElement *elem, GstPad *pad, GstCaps *caps, gpointer data);
 gboolean _mmplayer_gst_decode_autoplug_continue(GstElement *bin, GstPad *pad, GstCaps *caps, gpointer data);
 void _mmplayer_pipeline_complete(GstElement *decodebin, gpointer data);