mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
spark: make cVideo::SetVideoSystem more robust
in order to not run into driver locking issues, stop video decoding
before setting the video system and restart afterwards
Origin commit data
------------------
Branch: master
Commit: 5cd42eb204
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-02-25 (Sat, 25 Feb 2012)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -276,9 +276,18 @@ int cVideo::SetVideoSystem(int video_system, bool remember)
|
||||
lt_info("%s: video_system (%d) > VIDEO_STD_MAX (%d)\n", __func__, video_system, VIDEO_STD_MAX);
|
||||
return -1;
|
||||
}
|
||||
bool stopped = false;
|
||||
if (playstate == VIDEO_PLAYING)
|
||||
{
|
||||
lt_info("%s: playstate == VIDEO_PLAYING, stopping video\n", __func__);
|
||||
Stop();
|
||||
stopped = true;
|
||||
}
|
||||
hdmi_out(false);
|
||||
int ret = proc_put("/proc/stb/video/videomode", modes[video_system],strlen(modes[video_system]));
|
||||
hdmi_out(true);
|
||||
if (stopped)
|
||||
Start();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user