X-Git-Url: http://git.tdb.fi/?p=xinema.git;a=blobdiff_plain;f=remote%2Fsource%2Fxinemacontrol.cpp;h=7a013dfd0ad0e0880b92b3b5122294d6cc0b710d;hp=eb2ec47e5706b0a67016491cedde811468c31ede;hb=5ddfcd433a000be3c32e7fc6ade4de9e0673de9e;hpb=60cd42dc4fdb1fdfa438402956e7342a01fc8677 diff --git a/remote/source/xinemacontrol.cpp b/remote/source/xinemacontrol.cpp index eb2ec47..7a013df 100644 --- a/remote/source/xinemacontrol.cpp +++ b/remote/source/xinemacontrol.cpp @@ -4,6 +4,7 @@ XinemaControl::XinemaControl(): playback_state(STOPPED), duration(0.0f), position(0.0f), + framerate(0.0f), current_audio_channel(-1), current_spu_channel(-1) { @@ -147,6 +148,27 @@ void XinemaControl::process_reply(const QString &reply) position = args.toFloat(); emit position_changed(position); } + else if(keyword=="video_size") + { + space = args.indexOf(' '); + video_size = QSize(args.mid(0, space).toInt(), args.mid(space+1).toInt()); + emit size_changed(video_size); + } + else if(keyword=="framerate") + { + framerate = args.toFloat(); + emit framerate_changed(framerate); + } + else if(keyword=="video_codec") + { + video_codec = args; + emit codecs_changed(video_codec, audio_codec); + } + else if(keyword=="audio_codec") + { + audio_codec = args; + emit codecs_changed(video_codec, audio_codec); + } else if(keyword=="audio_count") resize_list(audio_channels, args.toInt()); else if(keyword=="audio")