mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 07:23:11 +02:00
azbox: remove unneeded hacks from cVideo
This commit is contained in:
@@ -146,8 +146,6 @@ retry:
|
|||||||
void cVideo::closeDevice(void)
|
void cVideo::closeDevice(void)
|
||||||
{
|
{
|
||||||
lt_debug("%s\n", __func__);
|
lt_debug("%s\n", __func__);
|
||||||
/* looks like sometimes close is unhappy about non-empty buffers */
|
|
||||||
Start();
|
|
||||||
if (fd >= 0)
|
if (fd >= 0)
|
||||||
close(fd);
|
close(fd);
|
||||||
fd = -1;
|
fd = -1;
|
||||||
@@ -286,16 +284,7 @@ int cVideo::SetVideoSystem(int video_system, bool remember)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
lt_info("%s: old: '%s' new: '%s'\n", __func__, current, modes[video_system]);
|
lt_info("%s: old: '%s' new: '%s'\n", __func__, current, modes[video_system]);
|
||||||
bool stopped = false;
|
|
||||||
if (playstate == VIDEO_PLAYING)
|
|
||||||
{
|
|
||||||
lt_info("%s: playstate == VIDEO_PLAYING, stopping video\n", __func__);
|
|
||||||
Stop();
|
|
||||||
stopped = true;
|
|
||||||
}
|
|
||||||
ret = proc_put("/proc/stb/video/videomode", modes[video_system],strlen(modes[video_system]));
|
ret = proc_put("/proc/stb/video/videomode", modes[video_system],strlen(modes[video_system]));
|
||||||
if (stopped)
|
|
||||||
Start();
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user