Skip to content
Snippets Groups Projects
Commit eee7f801 authored by Sarah Caudill's avatar Sarah Caudill
Browse files

reference_psd.py: replace MESSAGE_ELEMENT

parent 15aa6beb
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,7 @@ class PSDHandler(simplehandler.Handler):
simplehandler.Handler.__init__(self, *args, **kwargs)
def do_on_message(self, bus, message):
if message.type == Gst.MESSAGE_ELEMENT and message.get_structure().get_name() == "spectrum":
if message.type == Gst.MessageType.ELEMENT and message.get_structure().get_name() == "spectrum":
self.psd = pipeio.parse_spectrum_message(message)
return True
return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment