mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 07:08:23 +00:00
gst/base/: Added small README for base classes.
Original commit message from CVS: * gst/base/README: * gst/base/gstbasesink.c: (gst_basesink_get_template), (gst_basesink_base_init), (gst_basesink_pad_getcaps), (gst_basesink_pad_setcaps), (gst_basesink_pad_buffer_alloc), (gst_basesink_init), (gst_base_sink_get_template), (gst_base_sink_get_caps), (gst_base_sink_set_caps), (gst_base_sink_buffer_alloc), (gst_basesink_finish_preroll), (gst_basesink_event), (gst_basesink_get_times), (gst_basesink_do_sync), (gst_basesink_change_state): Added small README for base classes. Make default getcaps function in the base class return a copy of the padtemplate caps if nothing else.
This commit is contained in:
parent
47eb83ff1c
commit
82a12763e8
5 changed files with 63 additions and 0 deletions
15
ChangeLog
15
ChangeLog
|
@ -1,3 +1,18 @@
|
|||
2005-02-24 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/base/README:
|
||||
* gst/base/gstbasesink.c: (gst_basesink_get_template),
|
||||
(gst_basesink_base_init), (gst_basesink_pad_getcaps),
|
||||
(gst_basesink_pad_setcaps), (gst_basesink_pad_buffer_alloc),
|
||||
(gst_basesink_init), (gst_base_sink_get_template),
|
||||
(gst_base_sink_get_caps), (gst_base_sink_set_caps),
|
||||
(gst_base_sink_buffer_alloc), (gst_basesink_finish_preroll),
|
||||
(gst_basesink_event), (gst_basesink_get_times),
|
||||
(gst_basesink_do_sync), (gst_basesink_change_state):
|
||||
Added small README for base classes.
|
||||
Make default getcaps function in the base class return a
|
||||
copy of the padtemplate caps if nothing else.
|
||||
|
||||
2005-02-24 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/elements/gstfakesrc.c: (gst_fakesrc_get_range_unlocked):
|
||||
|
|
16
gst/base/README
Normal file
16
gst/base/README
Normal file
|
@ -0,0 +1,16 @@
|
|||
Base classes
|
||||
------------
|
||||
|
||||
GstBaseSink
|
||||
|
||||
Base class for sink elements.
|
||||
|
||||
- one sinkpad
|
||||
- handles state changes
|
||||
- does flushing
|
||||
- preroll with optional preview
|
||||
- pull/push mode
|
||||
- EOS handling
|
||||
|
||||
FIXME: not much point making it operate in pull mode as a generic
|
||||
base class I guess...
|
|
@ -155,6 +155,14 @@ gst_basesink_pad_getcaps (GstPad * pad)
|
|||
if (bclass->get_caps)
|
||||
caps = bclass->get_caps (bsink);
|
||||
|
||||
if (caps == NULL) {
|
||||
GstStaticPadTemplate *stemplate;
|
||||
GstPadTemplate *template;
|
||||
|
||||
stemplate = gst_basesink_get_template (bsink);
|
||||
template = gst_static_pad_template_get (stemplate);
|
||||
caps = gst_caps_copy (gst_pad_template_get_caps (template));
|
||||
}
|
||||
return caps;
|
||||
}
|
||||
|
||||
|
|
16
libs/gst/base/README
Normal file
16
libs/gst/base/README
Normal file
|
@ -0,0 +1,16 @@
|
|||
Base classes
|
||||
------------
|
||||
|
||||
GstBaseSink
|
||||
|
||||
Base class for sink elements.
|
||||
|
||||
- one sinkpad
|
||||
- handles state changes
|
||||
- does flushing
|
||||
- preroll with optional preview
|
||||
- pull/push mode
|
||||
- EOS handling
|
||||
|
||||
FIXME: not much point making it operate in pull mode as a generic
|
||||
base class I guess...
|
|
@ -155,6 +155,14 @@ gst_basesink_pad_getcaps (GstPad * pad)
|
|||
if (bclass->get_caps)
|
||||
caps = bclass->get_caps (bsink);
|
||||
|
||||
if (caps == NULL) {
|
||||
GstStaticPadTemplate *stemplate;
|
||||
GstPadTemplate *template;
|
||||
|
||||
stemplate = gst_basesink_get_template (bsink);
|
||||
template = gst_static_pad_template_get (stemplate);
|
||||
caps = gst_caps_copy (gst_pad_template_get_caps (template));
|
||||
}
|
||||
return caps;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue