From: Wim Taymans Date: Wed, 3 Jun 2009 10:45:08 +0000 (+0200) Subject: playbin2: also set custom text and subp sinks X-Git-Tag: 1.19.3~511^2~9591 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49ee8a2d056ad4dcf336a9fa6d3d4db575c99b0a;p=platform%2Fupstream%2Fgstreamer.git playbin2: also set custom text and subp sinks Set the custom subpicture and text sinks along with the custom audio and video sinks when needed. Fix a little docs blurb too. --- diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index 77916be..9476299 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -2108,6 +2108,10 @@ no_more_pads_cb (GstElement * decodebin, GstSourceGroup * group) gst_play_sink_set_sink (playbin->playsink, GST_PLAY_SINK_TYPE_VIDEO, playbin->video_sink); } + gst_play_sink_set_sink (playbin->playsink, GST_PLAY_SINK_TYPE_TEXT, + playbin->text_sink); + gst_play_sink_set_sink (playbin->playsink, GST_PLAY_SINK_TYPE_SUBPIC, + playbin->subpic_sink); GST_SOURCE_GROUP_UNLOCK (group); GST_LOG_OBJECT (playbin, "reconfigure sink"); diff --git a/gst/playback/gstplaysink.h b/gst/playback/gstplaysink.h index 599e87d..fd3cabd 100644 --- a/gst/playback/gstplaysink.h +++ b/gst/playback/gstplaysink.h @@ -46,6 +46,7 @@ G_BEGIN_DECLS * @GST_PLAY_SINK_TYPE_VIDEO: a non-raw video pad * @GST_PLAY_SINK_TYPE_VIDEO_RAW: a raw video pad * @GST_PLAY_SINK_TYPE_TEXT: a raw text pad + * @GST_PLAY_SINK_TYPE_SUBPIC: a subpicture pad * @GST_PLAY_SINK_TYPE_LAST: the last type * @GST_PLAY_SINK_TYPE_FLUSHING: a flushing pad, used when shutting down *