Alex
Alex

Reputation: 159

create a pipeline in callback funtion gstreamer

Hi

I want to know if it is correct create a pipeline within a callback I give you an example of what I have implemented:

I have a callback that is responsible for receiving error messages. When I get an error that's the problem I launch a new pipeline to the problem fixed. This works but not if it is correct implementation or can give any problems later

Thanks!

Upvotes: 1

Views: 110

Answers (1)

Mathieu_Du
Mathieu_Du

Reputation: 827

It is completely correct to do so, we do that in pitivi for example : https://git.gnome.org/browse/pitivi/tree/pitivi/timeline/previewers.py#n965

Ideally, it is best to make sure no errors happen though :)

Upvotes: 1

Related Questions