From: Wim Taymans Date: Thu, 7 Jul 2005 08:43:17 +0000 (+0000) Subject: gst/gstquery.*: Remove old types X-Git-Tag: RELEASE-0_9_2~284 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9880f8a26b87841bed1dad7184b1e4c408f1048;p=platform%2Fupstream%2Fgstreamer.git gst/gstquery.*: Remove old types Original commit message from CVS: * gst/gstquery.c: * gst/gstquery.h: Remove old types --- diff --git a/ChangeLog b/ChangeLog index 9e2fa51..260a324 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2005-07-07 Wim Taymans + * gst/gstquery.c: + * gst/gstquery.h: + Remove old types + +2005-07-07 Wim Taymans + * gst/base/gstbasesrc.c: (gst_base_src_get_range), (gst_base_src_default_negotiate), (gst_base_src_negotiate): Allow subclasses to implement their own negotiation. diff --git a/gst/gstquery.c b/gst/gstquery.c index 1f5335c..ed66efc 100644 --- a/gst/gstquery.c +++ b/gst/gstquery.c @@ -46,19 +46,16 @@ static guint32 _n_values = 1; /* we start from 1 because 0 reserved for NONE * static GstMemChunk *chunk; static GstQueryTypeDefinition standard_definitions[] = { - {GST_QUERY_TOTAL, "total", "Total length"}, /* deprecated */ {GST_QUERY_POSITION, "position", "Current Position"}, {GST_QUERY_LATENCY, "latency", "Latency"}, {GST_QUERY_JITTER, "jitter", "Jitter"}, - {GST_QUERY_START, "start", "Start position of stream"}, /* deprecated */ - {GST_QUERY_SEGMENT_END, "segment_end", "End position of the stream"}, /* dep */ {GST_QUERY_RATE, "rate", "Configured rate 1000000 = 1"}, {GST_QUERY_SEEKING, "seeking", "Seeking capabilities and parameters"}, {GST_QUERY_CONVERT, "convert", "Converting between formats"}, + {GST_QUERY_FORMATS, "formats", "Supported formats for conversion"}, {0, NULL, NULL} }; - void _gst_query_initialize (void) { diff --git a/gst/gstquery.h b/gst/gstquery.h index 8e5ef41..7d5fdb0 100644 --- a/gst/gstquery.h +++ b/gst/gstquery.h @@ -36,16 +36,13 @@ G_BEGIN_DECLS typedef enum { GST_QUERY_NONE = 0, - GST_QUERY_TOTAL, /* deprecated, use POSITION */ - GST_QUERY_POSITION, - GST_QUERY_LATENCY, - GST_QUERY_JITTER, /* not in draft-query, necessary? */ - GST_QUERY_START, /* deprecated, use SEEKING */ - GST_QUERY_SEGMENT_END, /* deprecated, use SEEKING */ - GST_QUERY_RATE, /* not in draft-query, necessary? */ - GST_QUERY_SEEKING, - GST_QUERY_CONVERT, - GST_QUERY_FORMATS + GST_QUERY_POSITION, /* get current/end position */ + GST_QUERY_LATENCY, /* get current latency */ + GST_QUERY_JITTER, /* not in draft-query, necessary? */ + GST_QUERY_RATE, /* get current playback rate */ + GST_QUERY_SEEKING, /* get seeking start/stop positions */ + GST_QUERY_CONVERT, /* convert values */ + GST_QUERY_FORMATS /* query supported formats for convert */ } GstQueryType; /* rate is relative to 1000000 */