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

Fixed handling the -o option (short form of --outputonly)

This commit is contained in:
Klaus Schmidinger 2013-08-22 08:22:50 +02:00
parent a0a4421278
commit 7fc654eb21
2 changed files with 8 additions and 3 deletions

View File

@ -45,3 +45,8 @@ VDR Plugin 'dvbsddevice' Revision History
2013-03-31: Version 2.0.0 2013-03-31: Version 2.0.0
- Official release. - Official release.
2013-08-22: Version 2.0.1
- Fixed handling the -o option (short form of --outputonly; problem reported by
Mario Edelmann).

View File

@ -3,14 +3,14 @@
* *
* See the README file for copyright information and how to reach the author. * See the README file for copyright information and how to reach the author.
* *
* $Id: dvbsddevice.c 1.10 2013/03/31 09:30:18 kls Exp $ * $Id: dvbsddevice.c 3.1 2013/08/22 08:20:18 kls Exp $
*/ */
#include <getopt.h> #include <getopt.h>
#include <vdr/plugin.h> #include <vdr/plugin.h>
#include "dvbsdffdevice.h" #include "dvbsdffdevice.h"
static const char *VERSION = "2.0.0"; static const char *VERSION = "2.0.1";
static const char *DESCRIPTION = "SD Full Featured DVB device"; static const char *DESCRIPTION = "SD Full Featured DVB device";
class cPluginDvbsddevice : public cPlugin { class cPluginDvbsddevice : public cPlugin {
@ -48,7 +48,7 @@ bool cPluginDvbsddevice::ProcessArgs(int argc, char *argv[])
}; };
int c; int c;
while ((c = getopt_long(argc, argv, "", long_options, NULL)) != -1) { while ((c = getopt_long(argc, argv, "o", long_options, NULL)) != -1) {
switch (c) { switch (c) {
case 'o': probe->SetOutputOnly(true); case 'o': probe->SetOutputOnly(true);
break; break;