summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEunhae Choi <eunhae1.choi@samsung.com>2016-03-03 19:45:35 +0900
committerEunhae Choi <eunhae1.choi@samsung.com>2016-03-03 19:45:35 +0900
commit3dbbf1518ebedea32c7e4a915f67e5eef119e5b8 (patch)
treeb33d8dc1ed0ebbf48e42dcf730df420349ff9422
parent718b4cd0bb1ca66f48de5ba59612b7eaff8bdbce (diff)
downloadlibmm-player-3dbbf1518ebedea32c7e4a915f67e5eef119e5b8.tar.gz
libmm-player-3dbbf1518ebedea32c7e4a915f67e5eef119e5b8.tar.bz2
libmm-player-3dbbf1518ebedea32c7e4a915f67e5eef119e5b8.zip
add caps notify signal at fakesink (to fix tc fail of evas mode)
Change-Id: Iedd61405c41a8f9988faa43f94ced5900abc8b75
-rw-r--r--src/mm_player_priv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mm_player_priv.c b/src/mm_player_priv.c
index b899a65..8d1619e 100644
--- a/src/mm_player_priv.c
+++ b/src/mm_player_priv.c
@@ -261,6 +261,8 @@ static void __gst_appsrc_enough_video_data(GstElement *element, gpointer user_d
static gboolean __gst_seek_audio_data (GstElement * appsrc, guint64 position, gpointer user_data);
static gboolean __gst_seek_video_data (GstElement * appsrc, guint64 position, gpointer user_data);
static gboolean __gst_seek_subtitle_data (GstElement * appsrc, guint64 position, gpointer user_data);
+static void __mmplayer_gst_caps_notify_cb (GstPad * pad, GParamSpec * unused, gpointer data);
+
/*===========================================================================================
| |
| FUNCTION DEFINITIONS |
@@ -2648,6 +2650,11 @@ __mmplayer_gst_decode_pad_added (GstElement *elem, GstPad *pad, gpointer data)
goto ERROR;
}
+ if (stype == MM_DISPLAY_SURFACE_REMOTE) {
+ MMPLAYER_SIGNAL_CONNECT (player, sinkpad, MM_PLAYER_SIGNAL_TYPE_VIDEOBIN,
+ "notify::caps", G_CALLBACK(__mmplayer_gst_caps_notify_cb), player);
+ }
+
if (player->set_mode.media_packet_video_stream)
player->video_cb_probe_id = gst_pad_add_probe (sinkpad, GST_PAD_PROBE_TYPE_BUFFER, __mmplayer_video_stream_probe, player, NULL);