[gst-devel] using fakesrc

Tim Müller t.i.m at zen.co.uk
Sat Mar 11 07:46:01 CET 2006


On Fri, 2006-03-03 at 16:16 +0100, Tomas Groth wrote:

Hi,

> I've tried to use fakesrc in the attached test-setup (mostly copy/paste from
> manual examples) where i'm loading an ogg-file to memory and feed a pipeline
> using fakesrc, but it only loads the data (via a callback handoff) but never
> starts playing. If anyone could tell me what i'm doing wrong it will be
> appreciated!

just for posterity, the code was missing a

  g_object_set (fakesrc, "sizetype", 2, NULL);

so that fakesrc creates buffers of the size as set by the 'maxsize'
property and not empty buffers, and a

  g_object_set (fakesrc, "can-activate-pull", FALSE, NULL);

There is a typefind element just after fakesrc, which will try to
activate in pull-mode first, whereas the example wants to feed data
chunk-by-chunk.

Cheers
 -Tim






More information about the gstreamer-devel mailing list