Commits

Damián Nohales committed a8d25be

Fix an error message on the buffering check

  • Participants
  • Parent commits f127e50

Comments (0)

Files changed (1)

 
     def on_player_message(self, bus, message):
         if message.type == gst.MESSAGE_BUFFERING or message.type == gst.MESSAGE_ASYNC_DONE:
-            if message.parse_buffering() >= 100 or message.type == gst.MESSAGE_ASYNC_DONE:
+            if (message.type == gst.MESSAGE_BUFFERING and message.parse_buffering() >= 100) or message.type == gst.MESSAGE_ASYNC_DONE:
                 self.is_buffering = False
                 self.button_play.set_image(self.widget_image_stop)
                 self.button_pause.set_sensitive(True)