From 49ee8a2d056ad4dcf336a9fa6d3d4db575c99b0a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 3 Jun 2009 12:45:08 +0200 Subject: [PATCH] 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. --- gst/playback/gstplaybin2.c | 4 ++++ gst/playback/gstplaysink.h | 1 + 2 files changed, 5 insertions(+) diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index 77916bed84..9476299f3f 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 599e87df9f..fd3cabde3c 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 *