summaryrefslogtreecommitdiffstats
path: root/gst/switch/gstswitch.h
diff options
context:
space:
mode:
authorZaheer Abbas Merali <zaheerabbas@merali.org>2007-05-14 18:03:58 +0000
committerZaheer Abbas Merali <zaheerabbas@merali.org>2007-05-14 18:03:58 +0000
commitf369175264dcceb03694ae38b5e04694e32a2d52 (patch)
treef1e6f31827294506a1458e788063aaf1f1302ed0 /gst/switch/gstswitch.h
parent1e1c12e87ed1d4ec135330653c9390522d3e04dc (diff)
downloadgst-plugins-bad-f369175264dcceb03694ae38b5e04694e32a2d52.tar.gz
gst-plugins-bad-f369175264dcceb03694ae38b5e04694e32a2d52.tar.bz2
gst-plugins-bad-f369175264dcceb03694ae38b5e04694e32a2d52.zip
gst/switch/gstswitch.c (ARG_ACTIVE_SOURCE, ARG_STOP_VALUE,
Original commit message from CVS: * gst/switch/gstswitch.c (ARG_ACTIVE_SOURCE, ARG_STOP_VALUE, ARG_LAST_TS, parent_class, gst_switch_release_pad, gst_switch_request_new_pad, gst_switch_chain, gst_switch_event, gst_switch_set_property, gst_switch_get_property, gst_switch_getcaps, gst_switch_dispose, gst_switch_init, gst_switch_class_init): * gst/switch/gstswitch.h (previous_sinkpad, nb_sinkpads, stop_value, current_start, last_ts): Allow application to provide a stop timestamp, so a new segment update can be sent before switching.
Diffstat (limited to 'gst/switch/gstswitch.h')
-rw-r--r--gst/switch/gstswitch.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/switch/gstswitch.h b/gst/switch/gstswitch.h
index b546ba29..6f1e4eab 100644
--- a/gst/switch/gstswitch.h
+++ b/gst/switch/gstswitch.h
@@ -43,7 +43,8 @@ struct _GstSwitch {
GstPad *active_sinkpad;
GstPad *srcpad;
-
+ GstPad *previous_sinkpad;
+
guint nb_sinkpads;
/* this hash table stores for key of the pad pointer
* the last new segment event received for this pad
@@ -53,6 +54,9 @@ struct _GstSwitch {
/* flag to decide whether we need to send a new segment event
* before we receive the next buffer */
gboolean need_to_send_newsegment;
+ GstClockTime stop_value;
+ GstClockTime current_start;
+ GstClockTime last_ts;
};
struct _GstSwitchClass {