NEWSEGMENT -> SEGMENT
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 14 Dec 2012 14:22:27 +0000 (15:22 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 14 Dec 2012 14:33:21 +0000 (15:33 +0100)
docs/design/part-element-sink.txt
docs/design/part-events.txt
libs/gst/base/gstbaseparse.c
libs/gst/base/gstbasesink.c
libs/gst/base/gstbasesrc.c
plugins/elements/gstidentity.c
plugins/elements/gstoutputselector.c

index 6cda060d6c94a26922d83657c47bb801792326c9..b0561cdfc8214f7422d0f5cd0641495f2747f530 100644 (file)
@@ -178,8 +178,8 @@ sink overview
       PREROLL_UNLOCK
       STREAM_UNLOCK
       break
-    NEWSEGMENT:
-      # the newsegment must be used to clip incoming
+    SEGMENT:
+      # the segment must be used to clip incoming
       # buffers. Then then go into the queue as non-prerollable
       # items used for syncing the buffers
       STREAM_LOCK
index 001e8b7ef44b04f07d08e8d7359026a9e585acd2..6e81b5a6a1b10eb2fbf7e86918d83d993b9d4af5 100644 (file)
@@ -248,7 +248,7 @@ The general flow of executing the seek with FLUSH is as follows:
 
  4) send a FLUSH_STOP event to all peer elements to allow streaming again.
 
- 5) create a NEWSEGMENT event to signal the new buffer timestamp base time.
+ 5) create a SEGMENT event to signal the new buffer timestamp base time.
     This event must be queued to be sent by the streaming thread.
 
  6) start stopped tasks and unlock the STREAM_LOCK, dataflow will continue
index 3c85e10616e63aeb86553bb2f4d1223d6cbc2f89..4879e618d1d42678bf01a6bb57889b2921abdedc 100644 (file)
@@ -35,7 +35,7 @@
  *   <listitem><para>handles state changes</para></listitem>
  *   <listitem><para>can operate in pull mode or push mode</para></listitem>
  *   <listitem><para>handles seeking in both modes</para></listitem>
- *   <listitem><para>handles events (NEWSEGMENT/EOS/FLUSH)</para></listitem>
+ *   <listitem><para>handles events (SEGMENT/EOS/FLUSH)</para></listitem>
  *   <listitem><para>
  *        handles queries (POSITION/DURATION/SEEKING/FORMAT/CONVERT)
  *   </para></listitem>
@@ -2036,7 +2036,7 @@ gst_base_parse_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
     gst_base_parse_check_media (parse);
   }
 
-  /* Push pending events, including NEWSEGMENT events */
+  /* Push pending events, including SEGMENT events */
   if (G_UNLIKELY (parse->priv->pending_events)) {
     GList *r = g_list_reverse (parse->priv->pending_events);
     GList *l;
@@ -2070,7 +2070,7 @@ gst_base_parse_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
         GST_DEBUG_OBJECT (parse,
             "Gap of %" G_GINT64_FORMAT " ns detected in stream " "(%"
             GST_TIME_FORMAT " -> %" GST_TIME_FORMAT "). "
-            "Sending updated NEWSEGMENT events", diff,
+            "Sending updated SEGMENT events", diff,
             GST_TIME_ARGS (parse->segment.position),
             GST_TIME_ARGS (last_start));
 
@@ -3039,7 +3039,7 @@ pause:
       push_eos = TRUE;
     }
     if (push_eos) {
-      /* Push pending events, including NEWSEGMENT events */
+      /* Push pending events, including SEGMENT events */
       if (G_UNLIKELY (parse->priv->pending_events)) {
         GList *r = g_list_reverse (parse->priv->pending_events);
         GList *l;
index 54245af2757617d5da52f256577314881e5fa085..1ac4e8aef9a038cad6ec3b52069edf38a2b1d216 100644 (file)
@@ -84,7 +84,7 @@
  * element receives EOS in PAUSED, preroll completes, the event is queued and an
  * EOS message is posted when going to PLAYING.
  *
- * #GstBaseSink will internally use the #GST_EVENT_NEWSEGMENT events to schedule
+ * #GstBaseSink will internally use the #GST_EVENT_SEGMENT events to schedule
  * synchronisation and clipping of buffers. Buffers that fall completely outside
  * of the current segment are dropped. Buffers that fall partially in the
  * segment are rendered (and prerolled). Subclasses should do any subbuffer
index 12ba9a2fc5914027a76b8d7df3723d1f972cd7b6..4151e4086fc2f0078fa4c9749748ed5402ebb914 100644 (file)
@@ -35,7 +35,7 @@
  *
  * The source can be configured to operate in any #GstFormat with the
  * gst_base_src_set_format() method. The currently set format determines
- * the format of the internal #GstSegment and any #GST_EVENT_NEWSEGMENT
+ * the format of the internal #GstSegment and any #GST_EVENT_SEGMENT
  * events. The default format for #GstBaseSrc is #GST_FORMAT_BYTES.
  *
  * #GstBaseSrc always supports push mode scheduling. If the following
@@ -577,7 +577,7 @@ gst_base_src_is_live (GstBaseSrc * src)
  * @format: the format to use
  *
  * Sets the default format of the source. This will be the format used
- * for sending NEW_SEGMENT events and for performing seeks.
+ * for sending SEGMENT events and for performing seeks.
  *
  * If a format of GST_FORMAT_BYTES is set, the element will be able to
  * operate in pull mode if the #GstBaseSrcClass.is_seekable() returns TRUE.
index 2475cc8058127f04d3a66825e6bcd05e6274e208..b7718f9c6960d103018c702c3c217ed5576ecbee 100644 (file)
@@ -327,7 +327,7 @@ gst_identity_sink_event (GstBaseTransform * trans, GstEvent * event)
     }
   }
 
-  /* Reset previous timestamp, duration and offsets on NEWSEGMENT
+  /* Reset previous timestamp, duration and offsets on SEGMENT
    * to prevent false warnings when checking for perfect streams */
   if (GST_EVENT_TYPE (event) == GST_EVENT_SEGMENT) {
     identity->prev_timestamp = identity->prev_duration = GST_CLOCK_TIME_NONE;
index 294c2bc5a9ba0336e12f4b53e10261777fec606a..545d06860cdb973686a301c23d6a21290eb1f605 100644 (file)
@@ -454,7 +454,7 @@ gst_output_selector_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
     osel->latest_buffer = gst_buffer_ref (buf);
   }
 
-  /* Keep track of last stop and use it in NEWSEGMENT start after 
+  /* Keep track of last stop and use it in SEGMENT start after
      switching to a new src pad */
   position = GST_BUFFER_TIMESTAMP (buf);
   if (GST_CLOCK_TIME_IS_VALID (position)) {