1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

Debug GStreamer execution

Allow to config gstreamer log level
This commit is contained in:
albfan 2016-10-23 09:47:56 +02:00
parent 472fbf4a24
commit cedfeeebe1
4 changed files with 39 additions and 17 deletions

View file

@ -1,7 +1,6 @@
#!/usr/bin/python3 -u
import gi
import sys
import argparse
gi.require_version('Gst', '1.0')
@ -32,6 +31,11 @@ class Player(object):
self.width = int(split[0])
self.height = int(split[1])
debug = kwargs.get("debug")
if debug:
Gst.debug_set_active(True)
Gst.debug_set_threshold_from_string(debug, True)
port = kwargs.get("port")
uri = kwargs.get("uri")