From 7a36821856aacdc8273dbd0c2e6b25b335ecab76 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Mon, 17 Dec 2007 14:55:54 +0000 Subject: gst/switch/gstswitch.h (struct _GstStreamSelector): Add some state variables. Original commit message from CVS: 2007-12-17 Andy Wingo * gst/switch/gstswitch.h (struct _GstStreamSelector): Add some state variables. * gst/switch/gstswitch.c (gst_stream_selector_push_pending_stop) (gst_selector_pad_chain): Push any pending stop event. (gst_stream_selector_set_active_pad) (gst_stream_selector_set_property): Factor out setting the active pad to a function. Close the segment of the previous active pad if told to do so via a stop_time != GST_CLOCK_TIME_NONE. (gst_stream_selector_switch): Implement switch vmethod. Patch 5/12. --- gst/switch/gstswitch.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gst/switch/gstswitch.h') diff --git a/gst/switch/gstswitch.h b/gst/switch/gstswitch.h index 4690c3c3..3bb88204 100644 --- a/gst/switch/gstswitch.h +++ b/gst/switch/gstswitch.h @@ -48,6 +48,10 @@ struct _GstStreamSelector { guint nb_sinkpads; GstSegment segment; + + gboolean blocked; + gboolean pending_stop; + GstSegment pending_stop_segment; }; struct _GstStreamSelectorClass { -- cgit v1.2.1