mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added an error message if the directory specified in the '-L' option can't be accessed
This commit is contained in:
parent
26a2d98524
commit
4da8a8e066
@ -137,6 +137,8 @@ Stefan Huelswitt <huels@iname.com>
|
|||||||
for suggesting to make 'package' target in the plugin's Makefile produce a package that
|
for suggesting to make 'package' target in the plugin's Makefile produce a package that
|
||||||
expands to a directory with just the plugin name and version number
|
expands to a directory with just the plugin name and version number
|
||||||
for suggesting to make the config directory available to plugins
|
for suggesting to make the config directory available to plugins
|
||||||
|
for suggesting to add an error message if the directory specified in the '-L'
|
||||||
|
option can't be accessed
|
||||||
|
|
||||||
Ulrich Röder <roeder@efr-net.de>
|
Ulrich Röder <roeder@efr-net.de>
|
||||||
for pointing out that there are channels that have a symbol rate higher than
|
for pointing out that there are channels that have a symbol rate higher than
|
||||||
|
2
HISTORY
2
HISTORY
@ -1306,3 +1306,5 @@ Video Disk Recorder Revision History
|
|||||||
Gregoire Favre).
|
Gregoire Favre).
|
||||||
- Fixed the cutting mechanism to make it re-sync in case a frame is larger than the
|
- Fixed the cutting mechanism to make it re-sync in case a frame is larger than the
|
||||||
buffer (thanks to Sven Grothklags).
|
buffer (thanks to Sven Grothklags).
|
||||||
|
- Added an error message if the directory specified in the '-L' option can't be
|
||||||
|
accessed (suggested by Stefan Huelswitt).
|
||||||
|
9
vdr.c
9
vdr.c
@ -22,7 +22,7 @@
|
|||||||
*
|
*
|
||||||
* The project's page is at http://www.cadsoft.de/people/kls/vdr
|
* The project's page is at http://www.cadsoft.de/people/kls/vdr
|
||||||
*
|
*
|
||||||
* $Id: vdr.c 1.109 2002/05/13 16:32:49 kls Exp $
|
* $Id: vdr.c 1.110 2002/05/18 10:33:54 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
@ -146,7 +146,12 @@ int main(int argc, char *argv[])
|
|||||||
fprintf(stderr, "vdr: invalid log level: %s\n", optarg);
|
fprintf(stderr, "vdr: invalid log level: %s\n", optarg);
|
||||||
return 2;
|
return 2;
|
||||||
break;
|
break;
|
||||||
case 'L': PluginManager.SetDirectory(optarg);
|
case 'L': if (access(optarg, R_OK | X_OK) == 0)
|
||||||
|
PluginManager.SetDirectory(optarg);
|
||||||
|
else {
|
||||||
|
fprintf(stderr, "vdr: can't access plugin directory: %s\n", optarg);
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'm': MuteAudio = true;
|
case 'm': MuteAudio = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user