[prev in list] [next in list] [prev in thread] [next in thread]
List: gstreamer-devel
Subject: Re: memory leak during changing videocrop property at run time.
From: Nicolas Dufresne <nicolas () ndufresne ! ca>
Date: 2017-09-26 18:44:53
Message-ID: 1506451493.10536.39.camel () ndufresne ! ca
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Le mardi 26 septembre 2017 à 05:01 -0700, prerak a écrit :
> hello,
>
> I am able to change video crop property during run time bu it leads
> to
> memory leak.
> below is the part of code.
>
> gst_element_set_state (element.pipeline, GST_STATE_PLAYING);
> loop = g_main_loop_new (NULL, FALSE);
>
> while(1)
> {
> if(1 == flag)
> {
> g_object_set (G_OBJECT
> (element.video_crop),
> "left", crop_height, "right", crop_width, NULL);
> flag = 0;
> }
> sleep(1);
> }
>
> g_main_loop_run (loop);
>
> when i remove while loop code runs fine without memory leak.
> Any solution for this issue?
Would be nice to file a bug. We try to make this crash-free/leak-free
but setting these properties at run-time will always remain racy. A
workaround is to use the control bindings or a padprobe to set these
properties atomicly.
>
> Regards,
> Prerak
>
>
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
["signature.asc" (application/pgp-signature)]
[Attachment #6 (text/plain)]
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic