Add signal to notify when M7 done 32/57232/2 accepted/tizen/mobile/20160127.002352 accepted/tizen/tv/20160127.002412 accepted/tizen/wearable/20160127.002431 submit/tizen/20160126.052524
authorHyunjun Ko <zzoon.ko@samsung.com>
Mon, 18 Jan 2016 07:56:39 +0000 (16:56 +0900)
committerHyunjun Ko <zzoon.ko@samsung.com>
Mon, 18 Jan 2016 07:58:28 +0000 (16:58 +0900)
Change-Id: I56802c4cb7c6fee8407a689d51af4cc443887ef0

gst/rtsp-server/rtsp-client-wfd.c
gst/rtsp-server/rtsp-client-wfd.h

index 38cbae1..8566638 100644 (file)
@@ -148,6 +148,7 @@ enum
   SIGNAL_WFD_OPTIONS_REQUEST,
   SIGNAL_WFD_GET_PARAMETER_REQUEST,
   SIGNAL_WFD_KEEP_ALIVE_FAIL,
+  SIGNAL_WFD_PLAYING_DONE,
   SIGNAL_WFD_LAST
 };
 
@@ -250,6 +251,11 @@ gst_rtsp_wfd_client_class_init (GstRTSPWFDClientClass * klass)
       G_STRUCT_OFFSET (GstRTSPWFDClientClass, wfd_keep_alive_fail), NULL, NULL,
       g_cclosure_marshal_generic, G_TYPE_NONE, 0, G_TYPE_NONE);
 
+  gst_rtsp_client_wfd_signals[SIGNAL_WFD_PLAYING_DONE] =
+      g_signal_new ("wfd-playing-done", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
+      G_STRUCT_OFFSET (GstRTSPWFDClientClass, wfd_playing_done), NULL, NULL,
+      g_cclosure_marshal_generic, G_TYPE_NONE, 0, G_TYPE_NONE);
+
   klass->wfd_options_request = wfd_options_request_done;
   klass->wfd_get_param_request = wfd_get_param_request_done;
 
@@ -944,8 +950,11 @@ handle_wfd_play (GstRTSPClient * client, GstRTSPContext * ctx)
   g_return_if_fail (priv != NULL);
 
   wfd_set_keep_alive_condition(_client);
-  
+
   priv->stats_timer_id = g_timeout_add (2000, wfd_display_rtp_stats, _client);
+
+  g_signal_emit (client,
+      gst_rtsp_client_wfd_signals[SIGNAL_WFD_PLAYING_DONE], 0, NULL);
 }
 
 static void
index baf54b9..67faab7 100644 (file)
@@ -112,6 +112,7 @@ struct _GstRTSPWFDClientClass {
   void     (*wfd_options_request)         (GstRTSPWFDClient *client, GstRTSPContext *ctx);
   void     (*wfd_get_param_request)       (GstRTSPWFDClient *client, GstRTSPContext *ctx);
   void     (*wfd_keep_alive_fail)         (GstRTSPWFDClient *client);
+  void     (*wfd_playing_done)            (GstRTSPWFDClient *client);
 
   /*< private >*/
   gpointer _gst_reserved[GST_PADDING_LARGE];