summaryrefslogtreecommitdiffstats
path: root/gst/switch/gstswitch.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2007-12-17 14:55:54 +0000
committerAndy Wingo <wingo@pobox.com>2007-12-17 14:55:54 +0000
commit7a36821856aacdc8273dbd0c2e6b25b335ecab76 (patch)
treeb421a6ace128466828c65867a0747ab2f8a2848d /gst/switch/gstswitch.h
parent5d8d5eb81d5130239de964dd5de42be07bc424e6 (diff)
downloadgst-plugins-bad-7a36821856aacdc8273dbd0c2e6b25b335ecab76.tar.gz
gst-plugins-bad-7a36821856aacdc8273dbd0c2e6b25b335ecab76.tar.bz2
gst-plugins-bad-7a36821856aacdc8273dbd0c2e6b25b335ecab76.zip
gst/switch/gstswitch.h (struct _GstStreamSelector): Add some state variables.
Original commit message from CVS: 2007-12-17 Andy Wingo <wingo@pobox.com> * 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.
Diffstat (limited to 'gst/switch/gstswitch.h')
-rw-r--r--gst/switch/gstswitch.h4
1 files changed, 4 insertions, 0 deletions
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 {