Verified Commit 68d9a73b authored by Todd Weaver's avatar Todd Weaver
Browse files

Adding EOS (End of Stream) detection to null out player (removing it from...

Adding EOS (End of Stream) detection to null out player (removing it from sound settings and gstreamer open pipeline)
parent 7c78cf88
......@@ -217,6 +217,9 @@ class ResultsBox(Gtk.Box):
self.time_viewed.set_label(viewed)
self.time_remaining.set_label(f"-{remaining}")
if int(position / Gst.SECOND) >= int(duration / Gst.SECOND):
self.null_out_player()
# is negative number when not successful, so put it to 0
if not success:
position_value = 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment