Gstreamer get version from python ?

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

Gstreamer get version from python ?

Stuart Axon
I'm using gst uninstalled on some pis.

Sometimes, it looks like they start using the system gstreamer instead of gstreamer uninstalled.

Basically set_window_handle becomes unavailable.


Is there a way to check the version, so I can verify this is what is happening ?
 


I have this bit of code
def on_sync_message(bus, msg):
if msg.get_structure().get_name() == 'prepare-window-handle':
_sink = msg.src
 _sink.set_window_handle(win_handle)
And after some amount of hours it starts failing.



I run the pis for hours they will randomly start not having set_window_handle

S++

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

Re: Gstreamer get version from python ?

Stuart Axon
This turned out to be because I hadn't imported

GstVideo

I wonder if it would be possible to include have an error message with this info, when trying to use set_window_handle without first importing GstVideo ?
 
S++


On Sunday, February 5, 2017 2:15 PM, Stuart Axon <[hidden email]> wrote:


I'm using gst uninstalled on some pis.

Sometimes, it looks like they start using the system gstreamer instead of gstreamer uninstalled.

Basically set_window_handle becomes unavailable.


Is there a way to check the version, so I can verify this is what is happening ?
 


I have this bit of code
def on_sync_message(bus, msg):
if msg.get_structure().get_name() == 'prepare-window-handle':
_sink = msg.src
 _sink.set_window_handle(win_handle)
And after some amount of hours it starts failing.



I run the pis for hours they will randomly start not having set_window_handle

S++



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel