mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
Replace use of GST_PAD_FORMATS_FUNCTION() and similar macros with the code that they would expand to.
Original commit message from CVS: Replace use of GST_PAD_FORMATS_FUNCTION() and similar macros with the code that they would expand to. * ext/flac/gstflacdec.c: (gst_flacdec_get_src_formats), (gst_flacdec_get_src_query_types), (gst_flacdec_get_src_event_masks): * ext/gnomevfs/gstgnomevfssrc.c: (gst_gnomevfssrc_get_formats), (gst_gnomevfssrc_get_query_types), (gst_gnomevfssrc_get_event_mask):
This commit is contained in:
parent
d6f7282bea
commit
e3eccad808
2 changed files with 42 additions and 12 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
||||||
|
2004-02-04 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
|
Replace use of GST_PAD_FORMATS_FUNCTION() and similar macros
|
||||||
|
with the code that they would expand to.
|
||||||
|
* ext/flac/gstflacdec.c: (gst_flacdec_get_src_formats),
|
||||||
|
(gst_flacdec_get_src_query_types),
|
||||||
|
(gst_flacdec_get_src_event_masks):
|
||||||
|
* ext/gnomevfs/gstgnomevfssrc.c: (gst_gnomevfssrc_get_formats),
|
||||||
|
(gst_gnomevfssrc_get_query_types),
|
||||||
|
(gst_gnomevfssrc_get_event_mask):
|
||||||
|
|
||||||
2004-02-04 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
2004-02-04 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||||
|
|
||||||
* gst/sine/gstsinesrc.c: (gst_sinesrc_class_init),
|
* gst/sine/gstsinesrc.c: (gst_sinesrc_class_init),
|
||||||
|
|
|
@ -579,11 +579,18 @@ gst_flacdec_loop (GstElement *element)
|
||||||
GST_DEBUG ("flacdec: _loop end");
|
GST_DEBUG ("flacdec: _loop end");
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PAD_FORMATS_FUNCTION (gst_flacdec_get_src_formats,
|
|
||||||
GST_FORMAT_DEFAULT,
|
static const GstFormat *
|
||||||
GST_FORMAT_BYTES,
|
gst_flacdec_get_src_formats (GstPad *pad)
|
||||||
GST_FORMAT_TIME
|
{
|
||||||
)
|
static const GstFormat formats[] = {
|
||||||
|
GST_FORMAT_DEFAULT,
|
||||||
|
GST_FORMAT_BYTES,
|
||||||
|
GST_FORMAT_TIME,
|
||||||
|
0,
|
||||||
|
};
|
||||||
|
return formats;
|
||||||
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_flacdec_convert_src (GstPad *pad, GstFormat src_format, gint64 src_value,
|
gst_flacdec_convert_src (GstPad *pad, GstFormat src_format, gint64 src_value,
|
||||||
|
@ -648,10 +655,16 @@ gst_flacdec_convert_src (GstPad *pad, GstFormat src_format, gint64 src_value,
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PAD_QUERY_TYPE_FUNCTION (gst_flacdec_get_src_query_types,
|
static const GstQueryType *
|
||||||
GST_QUERY_TOTAL,
|
gst_flacdec_get_src_query_types (GstPad *pad)
|
||||||
GST_QUERY_POSITION
|
{
|
||||||
)
|
static const GstQueryType types[] = {
|
||||||
|
GST_QUERY_TOTAL,
|
||||||
|
GST_QUERY_POSITION,
|
||||||
|
0,
|
||||||
|
};
|
||||||
|
return types;
|
||||||
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_flacdec_src_query (GstPad *pad, GstQueryType type,
|
gst_flacdec_src_query (GstPad *pad, GstQueryType type,
|
||||||
|
@ -690,9 +703,15 @@ gst_flacdec_src_query (GstPad *pad, GstQueryType type,
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PAD_EVENT_MASK_FUNCTION (gst_flacdec_get_src_event_masks,
|
static const GstEventMask *
|
||||||
{ GST_EVENT_SEEK, GST_SEEK_FLAG_ACCURATE }
|
gst_flacdec_get_src_event_masks (GstPad *pad)
|
||||||
);
|
{
|
||||||
|
static const GstEventMask masks[] = {
|
||||||
|
{ GST_EVENT_SEEK, GST_SEEK_FLAG_ACCURATE },
|
||||||
|
{ 0, 0 },
|
||||||
|
};
|
||||||
|
return masks;
|
||||||
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_flacdec_src_event (GstPad *pad, GstEvent *event)
|
gst_flacdec_src_event (GstPad *pad, GstEvent *event)
|
||||||
|
|
Loading…
Reference in a new issue