memory leak during changing videocrop property at run time.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

memory leak during changing videocrop property at run time.

prerak
hello,

I am able to change video crop property during run time but 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?

Regards,
Prerak





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: memory leak during changing videocrop property at run time.

Baby Octopus
Administrator
What does your complete pipeline look like? Can you reproduce in a small
testbed, may be with videotestsrc and file a bug at
https://bugzilla.gnome.org ?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel