From 42aadabc81d991b00582ae9b846f8f0aa4d1b3cd Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Mon, 3 Mar 2003 17:58:07 +0000 Subject: gst_play_get_sink_element has been improved : Original commit message from CVS: gst_play_get_sink_element has been improved : - Recursively searches in bins - Able to find sink_element of a specified GstPlaySinkType (audio,video,any) This now allow us to send very complex bins to GstPlay for audio/video sink without breaking length querying, eos signaling, etc.. --- gst-libs/gst/play/play.old.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gst-libs/gst/play/play.old.h') diff --git a/gst-libs/gst/play/play.old.h b/gst-libs/gst/play/play.old.h index f9b14116..e38c699d 100644 --- a/gst-libs/gst/play/play.old.h +++ b/gst-libs/gst/play/play.old.h @@ -64,6 +64,12 @@ typedef enum { GST_PLAY_ERROR_LAST, } GstPlayError; +typedef enum { + GST_PLAY_SINK_TYPE_AUDIO, + GST_PLAY_SINK_TYPE_VIDEO, + GST_PLAY_SINK_TYPE_ANY, +} GstPlaySinkType; + #define GST_PLAY_ERROR gst_play_error_quark () #define GST_TYPE_PLAY (gst_play_get_type()) @@ -169,7 +175,8 @@ gst_play_set_idle_timeout_funcs ( GstPlay *play, GstPlayIdleAdd idle_add_func); GstElement* gst_play_get_sink_element ( GstPlay *play, - GstElement *element); + GstElement *element, + GstPlaySinkType sink_type); /* Set/Get state */ -- cgit v1.2.1