]> git.parisson.com Git - telecaster-client.git/commitdiff
fix encoder status
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 16 Jul 2013 23:07:48 +0000 (01:07 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 16 Jul 2013 23:07:48 +0000 (01:07 +0200)
telecaster/tools/status.py
telecaster/tools/tools.py

index 50a1e2d231fd669e3b6c0ed1ffbd7966f0481904..9e04486b746bb4ebf718e5e7c4540aec58165d23 100644 (file)
@@ -103,12 +103,12 @@ class Status(object):
         else:
             self.jacking = False
 
-        if get_pid('edcast_jack', args=False):
+        if get_pid('gst-launch-0.10', args='lamemp3enc'):
             self.audio_encoding = True
         else:
             self.audio_encoding = False
 
-        if get_pid('gst-launch-0.10', args=False):
+        if get_pid('gst-launch-0.10', args='vp8enc'):
             self.video_encoding = True
         else:
             self.video_encoding = False
index 058250fac42df691e86d128773bb008841c0b8f8..258d5e72ea0bfb9759e9976f6c83d33cc1a4f0ef 100644 (file)
@@ -110,7 +110,7 @@ def get_pid(name, args=None):
         if proc.cmdline:
             if name == proc.name:
                 if args:
-                    if args == proc.cmdline[-1]:
+                    if args in proc.cmdline[-1]:
                         return proc.pid
                 else:
                     return proc.pid