How to change property of an element in a pipeline?

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

How to change property of an element in a pipeline?

bboyavatar
This post was updated on .
Hello everyone,
   I want to change the property of one element which is already linked in a pipeline, for example, change the framerate when playing a video stream on the screen. I wonder if I could set the state of the pipeline to GST_STATE_READY and change the property using g_object_set() function, and then set the state of the pipeline back to GST_STATE_PLAYING. Actually this does not work and gives an segment error. Can anyone know how to make it? Thanks very much!
Reply | Threaded
Open this post in threaded view
|

Re: How to change property of an element in a pipeline?

Ralph
I don't know if it is going to help in your case, but when I had a problem with the videosink becoming dead after changing properties of a pipeline, Stefan Sauer suggested doing this:

> you could do a set_locked_state(TRUE) on the videosink (to avoid it
> going down), then goto READY, change uri, go back to PAUSED,
> set_locked_state(FALSE), go to PLAYING