X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fxinema.cpp;h=267f6a4eeb42b1dbebce1d71e67fc106133fe397;hb=e9e15ac445100aee25fb3314a3ad89e7142c33fb;hp=025ec562ad85fff87c414f5b023ceeb6cec62eb8;hpb=de7f120098fc0e4455c532836767d8ed3fc340cc;p=xinema.git diff --git a/source/xinema.cpp b/source/xinema.cpp index 025ec56..267f6a4 100644 --- a/source/xinema.cpp +++ b/source/xinema.cpp @@ -36,6 +36,8 @@ int Xinema::main() void Xinema::tick() { + bool new_stream = false; + { MutexLock lock(command_mutex); if(!pending_mrl.empty()) @@ -44,9 +46,13 @@ void Xinema::tick() stream = new XineStream(*engine, pending_mrl); stream->play(); pending_mrl.clear(); + new_stream = true; } } + if(new_stream) + signal_stream_created.emit(*stream); + { MutexLock lock(display_mutex); display.tick();