From da450d89306a28c52e7798163d1fdfa5a317c358 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20Test=C3=A9?= Date: Mon, 29 Feb 2016 23:48:26 +0100 Subject: [PATCH] Deleting useless lines. --- stream_2016/gstconf.py | 5 +---- stream_2016/libre-streamer.py | 8 ++------ 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/stream_2016/gstconf.py b/stream_2016/gstconf.py index 050200f..a48c8fc 100755 --- a/stream_2016/gstconf.py +++ b/stream_2016/gstconf.py @@ -309,7 +309,7 @@ class New_user_pipeline(): def get_stream_state(self): print(self.streampipe.get_state(self)) -## return self.streampipe.get_state() +##[FIXME] return self.streampipe.get_state() def set_filenames(self, string): """Sets filename and location for each sink.""" @@ -320,9 +320,6 @@ class New_user_pipeline(): rename(AUDIO_DEFAULT, audio) rename(RAWVIDEO_DEFAULT, rawvideo) rename(STREAM_DEFAULT, stream) -## self.disksink_audio.set_property('location', audio) -## self.disksink_rawvideo.set_property('location', rawvideo) -## self.disksink_stream.set_property('location', stream) def get_gstreamer_bus(): return bus diff --git a/stream_2016/libre-streamer.py b/stream_2016/libre-streamer.py index eaad46d..dce3bed 100755 --- a/stream_2016/libre-streamer.py +++ b/stream_2016/libre-streamer.py @@ -94,8 +94,6 @@ class Streamgui(object): self.speakerinfo_entry = Gtk.Entry() self.sessioninfo_label = Gtk.Label('Session name: ') self.sessioninfo_entry = Gtk.Entry() -## self.organisationinfo_label = Gtk.Label('Organisation name: ') -## self.organisationinfo_entry = Gtk.Entry() self.stream_button = Gtk.Button("Stream") self.stream_button.connect("clicked", self.on_stream_clicked) @@ -105,11 +103,9 @@ class Streamgui(object): vbox_labels.pack_start(self.baseinfo_label, True, True, 0) vbox_labels.pack_start(self.speakerinfo_label, True, True, 0) vbox_labels.pack_start(self.sessioninfo_label, True, True, 0) -## vbox_labels.pack_start(self.organisationinfo_label, True, True, 0) vbox_entries.pack_start(self.baseinfo_entry_label, True, True, 0) vbox_entries.pack_start(self.speakerinfo_entry, True, True, 0) vbox_entries.pack_start(self.sessioninfo_entry, True, True, 0) -## vbox_entries.pack_start(self.organisationinfo_entry, True, True, 0) vbox_streaminfo.pack_start(self.stream_button, False, True, 15) hbox_time.pack_start(self.streamtime_label, False, False, 0) hbox_time.pack_start(self.streamtime_value, False, False, 0) @@ -119,6 +115,7 @@ class Streamgui(object): hbox.pack_start(vbox_streaminfo, False, False, 0) vbox.pack_start(self.videowidget, True, True, 0) vbox.pack_start(hbox, False, True, 0) + self.win.add(vbox) self.win.set_position(Gtk.WindowPosition.CENTER) self.win.show_all() @@ -136,7 +133,6 @@ class Streamgui(object): imagesink = message.src imagesink.set_property('force-aspect-ratio', True) imagesink.set_window_handle(self.videowidget.get_property('window').get_xid()) - def on_stream_clicked(self, widget): @@ -180,7 +176,7 @@ class Streamgui(object): self.speakerinfo_entry.set_text('') self.sessioninfo_entry.set_text('') -## Use threads to refresh the time elapsed sinc the begining of the stream?? +## Use threading module to refresh the time elapsed sinc the begining of the stream?? def time_elapsed(self, widget): if self.pipel.stream_get_state() == 'PLAYING': pass -- 2.25.1