Using "convert-sample" from playbin
Sebastian Dröge
sebastian at centricular.com
Sun Aug 3 00:37:03 PDT 2014
On So, 2014-08-03 at 01:45 +0100, Chris Tapp wrote:
> I want to be able to grab a converted copy of the most recent frame from a video pipeline.
>
> The pipeline is created using gst_parse_launch() and contains a "playbin" element.
You can also just use pipeline = gst_element_factory_make("playbin", NULL);
> I then use the following to grab and process the converted frames:
>
> g_signal_emit_by_name( pipeline, "convert-sample", target_caps, &frame );
>
> // Process frame...
>
> gst_sample_unref( frame );
>
> However, this causes a memory leak. What am I doing wrong?
Impossible to say without more code. Can you provide a testcase that
reproduces it?
Are you maybe leaking the target_caps?
--
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- 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/20140803/6edd11a5/attachment.sig>
More information about the gstreamer-devel
mailing list