gst/gstmessage.*: Remove new messages for release.

Original commit message from CVS:
* gst/gstmessage.c: (gst_message_parse_duration):
* gst/gstmessage.h:
Remove new messages for release.
This commit is contained in:
Wim Taymans 2007-02-21 12:01:41 +00:00
parent 60212ff197
commit c4def75d2b
3 changed files with 7 additions and 82 deletions

View file

@ -1,3 +1,9 @@
2007-02-21 Wim Taymans <wim@fluendo.com>
* gst/gstmessage.c: (gst_message_parse_duration):
* gst/gstmessage.h:
Remove new messages for release.
2007-02-20 Wim Taymans <wim@fluendo.com>
* docs/design/part-gstghostpad.txt:

View file

@ -108,8 +108,6 @@ static GstMessageQuarks message_quarks[] = {
{GST_MESSAGE_SEGMENT_START, "segment-start", 0},
{GST_MESSAGE_SEGMENT_DONE, "segment-done", 0},
{GST_MESSAGE_DURATION, "duration", 0},
{GST_MESSAGE_LOST_PREROLL, "lost-preroll", 0},
{GST_MESSAGE_PREROLLED, "prerolled", 0},
{GST_MESSAGE_LATENCY, "latency", 0},
{0, NULL, 0}
};
@ -699,51 +697,6 @@ gst_message_new_duration (GstObject * src, GstFormat format, gint64 duration)
return message;
}
/**
* gst_message_new_lost_preroll:
* @src: The object originating the message.
* @pending: The state of @src when it lost preroll
*
* Returns: The new lost_preroll message.
*
* MT safe.
*
* Since: 0.10.12
*/
GstMessage *
gst_message_new_lost_preroll (GstObject * src, GstState pending)
{
GstMessage *message;
message = gst_message_new_custom (GST_MESSAGE_LOST_PREROLL, src,
gst_structure_new ("GstMessageLostPreroll",
"pending", GST_TYPE_STATE, pending, NULL));
return message;
}
/**
* gst_message_new_prerolled:
* @src: The object originating the message.
*
* This message is posted by sinks when they preroll.
*
* Returns: The new prerolled message.
*
* MT safe.
*
* Since: 0.10.12
*/
GstMessage *
gst_message_new_prerolled (GstObject * src)
{
GstMessage *message;
message = gst_message_new_custom (GST_MESSAGE_PREROLLED, src, NULL);
return message;
}
/**
* gst_message_new_latency:
* @src: The object originating the message.
@ -1092,29 +1045,3 @@ gst_message_parse_duration (GstMessage * message, GstFormat * format,
*duration =
g_value_get_int64 (gst_structure_get_value (structure, "duration"));
}
/**
* gst_message_parse_lost_preroll:
* @message: A valid #GstMessage of type GST_MESSAGE_LOST_PREROLL.
* @pending: Result location for the pending state, or NULL
*
* Extract the pending state from the lost_preroll message. The pending state is
* the state the element was in when it lost the preroll buffer.
*
* MT safe.
*
* Since: 0.10.12
*/
void
gst_message_parse_lost_preroll (GstMessage * message, GstState * pending)
{
const GstStructure *structure;
g_return_if_fail (GST_IS_MESSAGE (message));
g_return_if_fail (GST_MESSAGE_TYPE (message) == GST_MESSAGE_LOST_PREROLL);
structure = gst_message_get_structure (message);
if (pending)
*pending =
g_value_get_enum (gst_structure_get_value (structure, "pending"));
}

View file

@ -55,9 +55,6 @@ typedef struct _GstMessageClass GstMessageClass;
* @GST_MESSAGE_SEGMENT_START: pipeline started playback of a segment.
* @GST_MESSAGE_SEGMENT_DONE: pipeline completed playback of a segment.
* @GST_MESSAGE_DURATION: The duration of a pipeline changed.
* @GST_MESSAGE_LOST_PREROLL: Posted by ASYNC elements when they are flushed.
* Since: 0.10.12
* @GST_MESSAGE_PREROLLED: Posted by elements when they preroll. Since: 0.10.12
* @GST_MESSAGE_LATENCY: Posted by elements when their latency changes. The
* pipeline will calculate and distribute a new latency. Since: 0.10.12
* @GST_MESSAGE_ANY: mask for all of the above messages.
@ -89,9 +86,7 @@ typedef enum
GST_MESSAGE_SEGMENT_START = (1 << 16),
GST_MESSAGE_SEGMENT_DONE = (1 << 17),
GST_MESSAGE_DURATION = (1 << 18),
GST_MESSAGE_LOST_PREROLL = (1 << 19),
GST_MESSAGE_PREROLLED = (1 << 20),
GST_MESSAGE_LATENCY = (1 << 21),
GST_MESSAGE_LATENCY = (1 << 19),
GST_MESSAGE_ANY = ~0
} GstMessageType;
@ -267,8 +262,6 @@ GstMessage * gst_message_new_element (GstObject * src, GstStructure * structure
GstMessage * gst_message_new_segment_start (GstObject * src, GstFormat format, gint64 position);
GstMessage * gst_message_new_segment_done (GstObject * src, GstFormat format, gint64 position);
GstMessage * gst_message_new_duration (GstObject * src, GstFormat format, gint64 duration);
GstMessage * gst_message_new_lost_preroll (GstObject * src, GstState pending);
GstMessage * gst_message_new_prerolled (GstObject * src);
GstMessage * gst_message_new_latency (GstObject * src);
GstMessage * gst_message_new_custom (GstMessageType type,
GstObject * src,
@ -286,7 +279,6 @@ void gst_message_parse_new_clock (GstMessage *message, GstClock **clock);
void gst_message_parse_segment_start (GstMessage *message, GstFormat *format, gint64 *position);
void gst_message_parse_segment_done (GstMessage *message, GstFormat *format, gint64 *position);
void gst_message_parse_duration (GstMessage *message, GstFormat *format, gint64 *duration);
void gst_message_parse_lost_preroll (GstMessage *message, GstState *pending);
const GstStructure * gst_message_get_structure (GstMessage *message);