[gst-devel] segmentation fault creating a cap
25fps 48kHz
the.nox at gmail.com
Sun Jan 7 13:08:09 CET 2007
Hiya,
Thank you very much Tim, your notes helped me so much.
I have noticed that, under some circumstances (mainly with lot of
light), the webcam shows its window and needs about 3 or 4 seconds to
adjust it the light, meanwhile everything is white. I am trying to
capture a single snapshot, and would like to wait those 4 seconds and
then get the snapshot. I have done some tests, and i have figured out
that it needs to be done in pipeline's PLAYING state, but not how. Any
hints?
Best Regards,
On 1/3/07, Tim Müller <t.i.m at zen.co.uk> wrote:
> On Tue, 2007-01-02 at 23:36 +0100, 25fps 48kHz wrote:
>
> Hi,
> Some quick notes on your code:
>
> - the "framerate" field should be a GST_TYPE_FRACTION in 0.10
> (used to be a double in 0.8),
>
> - that link_with_filter() function doesn't really look right - you
> shouldn't
> just set caps on a pad from an application. You should insert a
> capsfilter
> element and set your filtercaps on that to force a particular format.
> The GStreamer function gst_element_link_filtered () will do this for
> you.
> Also, return values are always good to check, especially when linking
> elements.
>
> - a GMainLoop is not a GObject or a GstObject, you need to unref
> it with g_main_loop_unref().
>
> Cheers
> -Tim
More information about the gstreamer-devel
mailing list