No subject
Wed Feb 9 06:48:29 PST 2011
/* Output buffer preparation... if the buffer has no caps, and
* our allowed output caps is fixed, then give the caps to the
* buffer.
* This ensures that outgoing buffers have caps if we can, so
* that pipelines like:
* gst-launch filesrc location=3Drawsamples.raw !
* audio/x-raw-int,width=3D16,depth=3D16,rate=3D48000,channels=3D2,
* endianness=3D4321,signed=3D'(boolean)'true ! alsasink
* will work.
*/
static GstFlowReturn
gst_capsfilter_prepare_buf (GstBaseTransform * trans, GstBuffer * input,
gint size, GstCaps * caps, GstBuffer ** buf)
{
if (GST_BUFFER_CAPS (input) !=3D NULL) {
/* Output buffer already has caps */
GST_DEBUG_OBJECT (trans, "Input buffer already has caps");
gst_buffer_ref (input);
*buf =3D input;
} else {
/* Buffer has no caps. See if the output pad only supports fixed caps=
*/
GstCaps *out_caps;
......
}
Cheers
-Tim
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.
More information about the gstreamer-bugs
mailing list