diff options
author | Julien Moutte <julien@moutte.net> | 2003-03-03 17:58:07 +0000 |
---|---|---|
committer | Julien Moutte <julien@moutte.net> | 2003-03-03 17:58:07 +0000 |
commit | 42aadabc81d991b00582ae9b846f8f0aa4d1b3cd (patch) | |
tree | eef1a47bcd54c5a2509d7c40edb4af9ef9557f41 /gst-libs/gst/play/play.old.h | |
parent | c62995f2fc0bb404616311c43e9e4177d4c18dc1 (diff) | |
download | gst-plugins-bad-42aadabc81d991b00582ae9b846f8f0aa4d1b3cd.tar.gz gst-plugins-bad-42aadabc81d991b00582ae9b846f8f0aa4d1b3cd.tar.bz2 gst-plugins-bad-42aadabc81d991b00582ae9b846f8f0aa4d1b3cd.zip |
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..
Diffstat (limited to 'gst-libs/gst/play/play.old.h')
-rw-r--r-- | gst-libs/gst/play/play.old.h | 9 |
1 files changed, 8 insertions, 1 deletions
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 */ |