I am working on an application that requires playing multiple RTSP streams simultaneously using Gstreamer, it works fine with one stream, since I add a second stream, the first stream stops and the second starts playing, after several passages it also stops, and the application crashes.
Here is a screenshot of viewing APP streams

and this screenshot when APP crashes

I have Gstreamer.framework updates, searched and tried different solutions. But nothing worked
Here is my sample code for pipelining threads
#import "VideoViewController.h"
#import "GStreamerBackend.h"
#import <UIKit/UIKit.h>
@interface VideoViewController () {
GStreamerBackend *gst_backend;
GStreamerBackend *gst_backend1;
int media_width;
int media_height;
Boolean dragging_slider;
Boolean is_local_media;
Boolean is_playing_desired;
}
in viewDidLoad:
url1= my first url
url2=my second URL
here I initialize my 2 threads.
gst_backend = [[GStreamerBackend alloc] init:self videoView:video_view];
gst_backend1 = [[GStreamerBackend alloc] init:self videoView:video_view1];
this delegate method is called:
-(void) gstreamerInitialized
{
dispatch_async(dispatch_get_main_queue(), ^{
firstInit=YES;
play_button.enabled = TRUE;
pause_button.enabled = TRUE;
message_label.text = @"Ready";
[gst_backend setUri:uri];
[gst_backend1 setUri:uri2];
[gst_backend1 play];
[gst_backend play];
});
}
I think the problem is in the search path.

