]> git.tdb.fi Git - xinema.git/commitdiff
Remove handling of the progress event
authorMikko Rasa <tdb@tdb.fi>
Fri, 16 Oct 2015 16:03:16 +0000 (19:03 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 16 Oct 2015 16:03:16 +0000 (19:03 +0300)
It seems to be mostly useful for network streams and those are not
supported at the moment.

source/xinestream.cpp

index 619ec5800872e7d1c843f4eddde41c50178c1193..02fd3165de392af3a305fcf4787485214bf256ff 100644 (file)
@@ -1,4 +1,4 @@
-#include <msp/io/print.h>
+#include <msp/strings/format.h>
 #include "xineengine.h"
 #include "xinestream.h"
 
@@ -123,12 +123,6 @@ void XineStream::handle_event(const xine_event_t &event)
        case XINE_EVENT_UI_PLAYBACK_FINISHED:
                set_state(STOPPED);
                break;
-       case XINE_EVENT_PROGRESS:
-               {
-                       xine_progress_data_t *data = reinterpret_cast<xine_progress_data_t *>(event.data);
-                       IO::print("%s [%d%%]\n", data->description, data->percent);
-               }
-               break;
        }
 }