summaryrefslogtreecommitdiffstats
path: root/vrplayer/ourinterface.cpp
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-12-18 23:33:28 -0800
committerJay Sorg <jay.sorg@gmail.com>2013-12-18 23:33:28 -0800
commit75978a702b9acc29a17366273bc6f306fb32f999 (patch)
tree79a31779886f4387e434544eca94a1cb19581a7a /vrplayer/ourinterface.cpp
parentd60fd3f5133749502f1c1d1ea0af5c4090baa9d2 (diff)
downloadxrdp-proprietary-75978a702b9acc29a17366273bc6f306fb32f999.tar.gz
xrdp-proprietary-75978a702b9acc29a17366273bc6f306fb32f999.zip
vrplayer: many fixes
Diffstat (limited to 'vrplayer/ourinterface.cpp')
-rw-r--r--vrplayer/ourinterface.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/vrplayer/ourinterface.cpp b/vrplayer/ourinterface.cpp
index e13e6e8b..261ba04d 100644
--- a/vrplayer/ourinterface.cpp
+++ b/vrplayer/ourinterface.cpp
@@ -32,7 +32,8 @@ void OurInterface::oneTimeDeinit()
closeVirtualChannel();
}
-void OurInterface::initRemoteClient()
+/* returns error */
+int OurInterface::initRemoteClient()
{
int64_t start_time;
int64_t duration;
@@ -40,18 +41,21 @@ void OurInterface::initRemoteClient()
//elapsedTime = 0;
if (sendMetadataFile())
- return;
+ return 1;
if (sendVideoFormat())
- return;
+ return 1;
if (sendAudioFormat())
- return;
+ return 1;
if (sendGeometry(savedGeometry))
- return;
+ return 1;
- xrdpvr_play_media(channel, 101, filename.toAscii().data());
+ if (xrdpvr_play_media(channel, 101, filename.toAscii().data()) != 0)
+ {
+ return 1;
+ }
xrdpvr_get_media_duration(&start_time, &duration);
//qDebug() << "ourInterface:initRemoteClient: emit onMediaDurationInSecs: dur=" << duration;
@@ -66,6 +70,7 @@ void OurInterface::initRemoteClient()
demuxMedia->moveToThread(demuxMediaThread);
//playVideo = demuxMedia->getPlayVideoInstance();
}
+ return 0;
}
void OurInterface::deInitRemoteClient()