Get rid of NEW_MEDIA event, EOS is supposed to handle that
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Sat, 7 Jun 2003 00:15:18 +0000 (00:15 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Sat, 7 Jun 2003 00:15:18 +0000 (00:15 +0000)
Original commit message from CVS:
Get rid of NEW_MEDIA event, EOS is supposed to handle that

docs/random/wtay/events3
gst/gstevent.c
gst/gstevent.h

index 0dfd487..493d673 100644 (file)
@@ -74,15 +74,6 @@ are supposed to handle them.
 
   The EOS event is strictly a downstream event.
 
-* NEW_MEDIA
-
-  The new media event is typically generated by source elements when
-  they provide data of a new type.
-  <<< define me >>>
-
-  The NEW_MEDIA event is strictly a downstream event.
-  
-
 * DISCONTINUOUS
 
   The discontinuous event is used to indicate a discontinuity in the
index 6dc34a7..337a691 100644 (file)
@@ -255,25 +255,6 @@ gst_event_discont_get_value (GstEvent *event, GstFormat format, gint64 *value)
 
 
 /**
- * gst_event_has_new_media:
- * @event: The event to check
- *
- * Checks if a given event indicates a new media.
- *
- * Returns: True if the event indicates a new media
- */
-gboolean
-gst_event_has_new_media (GstEvent *event)
-{
-  g_return_val_if_fail (GST_IS_EVENT (event), FALSE);
-  g_return_val_if_fail (GST_EVENT_TYPE (event) == GST_EVENT_DISCONTINUOUS ||
-                        GST_EVENT_TYPE (event) == GST_EVENT_NEW_MEDIA, FALSE);
-  if (GST_EVENT_TYPE (event) == GST_EVENT_NEW_MEDIA)
-    return TRUE;
-
-  return GST_EVENT_DISCONT_NEW_MEDIA (event);  
-}
-/**
  * gst_event_new_size:
  * @format: The format of the size value
  * @value: The value of the size event
index 27ff9f8..bf7077b 100644 (file)
@@ -37,7 +37,7 @@ typedef enum {
   GST_EVENT_FLUSH              = 2,
   GST_EVENT_EMPTY              = 3,
   GST_EVENT_DISCONTINUOUS      = 4,
-  GST_EVENT_NEW_MEDIA          = 5,
+  /*GST_EVENT_NEW_MEDIA                = 5, <- removed */
   GST_EVENT_QOS                        = 6,
   GST_EVENT_SEEK               = 7,
   GST_EVENT_SEEK_SEGMENT       = 8,
@@ -208,7 +208,6 @@ GstEvent*   gst_event_new_size              (GstFormat format, gint64 value);
 GstEvent*      gst_event_new_discontinuous     (gboolean new_media,
                                                 GstFormat format1, ...);
 gboolean       gst_event_discont_get_value     (GstEvent *event, GstFormat format, gint64 *value);
-gboolean       gst_event_has_new_media         (GstEvent *event);
 
 #define                gst_event_new_filler()          gst_event_new(GST_EVENT_FILLER)