leak on playing a sequence of movie files on MAC

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

leak on playing a sequence of movie files on MAC

GStreamer-devel mailing list
I want to play a sequence of movie files continuously on MAC.
To do this, I added some code to iOS tutorial 3 as follows to start the next
movie when currently playing movie is ended.
Playing is OK for some time, but the number of gldisplay-event thread and
memory usage inclease and eventualy my app is crashed because of shortage of
memory.
Is theare any idea to avoid this?



-(void) play
{
    // added to start the next movie
    if (pipeline == NULL) {
       
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,
0), ^{
            [self app_function];
        });
    }
    [self setUIMessage:"playing"];
    if(gst_element_set_state(pipeline, GST_STATE_PLAYING) ==
GST_STATE_CHANGE_FAILURE) {
        [self setUIMessage:"Failed to set pipeline to playing"];
    }
}


My environment is:
MAC OS: 11.3.1(Big Sur)
GStreamer version: 1.16.2
The original code: iOS tutorial 3: Video
https://gstreamer.freedesktop.org/documentation/tutorials/ios/video.html?gi-language=c


Thanks




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