why appsrc can only work 200 times?

Michael Smith msmith at xiph.org
Tue Dec 6 10:26:30 PST 2011


There is no such limitation in appsrc - it does have a maximum number
of bytes to buffer internally (defaults to 200000), but that shouldn't
be a problem unless the rest of your pipeline isn't running. Also, 300
is a lot smaller than 200000, so perhaps you have another problem.

Perhaps there's a bug with how the rest of your pipeline works. Of
course, since you provided no details about your application other
than that it uses appsrc, I can't suggest anything specific.

Mike



On Tue, Dec 6, 2011 at 9:09 AM, Nathan <zjustc at gmail.com> wrote:
> Greetings,
>
>  Currently, I am testing the appsrc element, which will use  "need-data"
> signal.
> g_signal_connect(G_OBJECT(app->appsrc),  "need-data",
> G_CALLBACK(feed_data), app)
>  my feed_data function will read data from a array with 300 guint8 numbers.
>
> The codes work fine in the beginning, however it will stop when the
> feed_data read the 200th number.
> I run it for many times, the code will exactly stop at 200th number.
>
> Anyone knows how that happen?
> Any trick to set the properties of appsrc?
>
> Thanks,
>
> Jun
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/why-appsrc-can-only-work-200-times-tp4165570p4165570.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list