convert-frame signal invalid
Sebastian Dröge
sebastian at centricular.com
Wed Apr 22 06:48:17 PDT 2015
On Di, 2015-04-21 at 15:19 +0200, Harry wrote:
> Using GStreamer 1.4.5 on Windows, and trying to extract the current frame as an image, without success.
> My pipeline contains playbin as the only element, and it works fine for playing & pausing, but convert-frame fails.
>
> My code is based on several examples I found and is similar to this:
>
> GstCaps *caps = gst_caps_from_string("image/png");
> GstSample *sample = 0;
>
> gst_element_set_state(pipeline, GST_STATE_PAUSED);
> gst_element_get_state(pipeline, NULL, NULL, GST_CLOCK_TIME_NONE);
>
> g_signal_emit_by_name(pipeline, "convert-frame", caps, &sample, NULL);
>
> I get the error :
>
> GLib-GObject-WARNING **: gsignal.c:3408: signal name 'convert-frame' is invalid for instance '086CD928' of type 'GstPipeline'
>
> I get the same error when emitting the "convert-frame" signal to playbin and also to its video-sink.
>
> Why is the "convert-frame" signal invalid ? To which element would it be valid ?
"convert-frame" is a signal on playbin, not every pipeline has it. And
you try it on a generic pipeline, not playbin.
Note also that you don't have to put playbin into a pipeline. Playbin
already *is* a pipeline.
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150422/1bcf5e2f/attachment.sig>
More information about the gstreamer-devel
mailing list