mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 11:40:38 +00:00
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.
This commit is contained in:
parent
59d9833924
commit
49ee8a2d05
2 changed files with 5 additions and 0 deletions
|
@ -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");
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue