1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed checking for valid video device when setting the video mode

This commit is contained in:
Klaus Schmidinger 2001-10-06 15:14:41 +02:00
parent 8585e08a0f
commit 5011616a3e
2 changed files with 4 additions and 3 deletions

View File

@ -787,7 +787,7 @@ Video Disk Recorder Revision History
- Made the volume, mute and power keys work when a menu is active, too (thanks - Made the volume, mute and power keys work when a menu is active, too (thanks
to Matthias Weingart). to Matthias Weingart).
2001-10-05: Version 0.97 2001-10-06: Version 0.97
- Implemented a lock file to prevent more than one instance of VDR from removing - Implemented a lock file to prevent more than one instance of VDR from removing
files from the video directory at the same time. files from the video directory at the same time.
@ -804,3 +804,4 @@ Video Disk Recorder Revision History
whether they still use the correct channel number. whether they still use the correct channel number.
- Fixed the "EPG bugfix" (sometimes had duplicate information in Subtitle and - Fixed the "EPG bugfix" (sometimes had duplicate information in Subtitle and
Extended Description). Extended Description).
- Fixed checking for valid video device when setting the video mode.

View File

@ -7,7 +7,7 @@
* DVD support initially written by Andreas Schultz <aschultz@warp10.net> * DVD support initially written by Andreas Schultz <aschultz@warp10.net>
* based on dvdplayer-0.5 by Matjaz Thaler <matjaz.thaler@guest.arnes.si> * based on dvdplayer-0.5 by Matjaz Thaler <matjaz.thaler@guest.arnes.si>
* *
* $Id: dvbapi.c 1.130 2001/09/30 11:28:58 kls Exp $ * $Id: dvbapi.c 1.131 2001/10/06 15:14:17 kls Exp $
*/ */
//#define DVDDEBUG 1 //#define DVDDEBUG 1
@ -3169,7 +3169,7 @@ void cDvbApi::SetModeNormal(bool FromRecording)
void cDvbApi::SetVideoFormat(videoFormat_t Format) void cDvbApi::SetVideoFormat(videoFormat_t Format)
{ {
if (fd_video) if (fd_video >= 0)
CHECK(ioctl(fd_video, VIDEO_SET_FORMAT, Format)); CHECK(ioctl(fd_video, VIDEO_SET_FORMAT, Format));
} }