summaryrefslogtreecommitdiffstats
path: root/sys/dvb/gstdvbsrc.h
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2006-11-04 13:26:41 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2006-11-04 13:26:41 +0000
commitde0a7a01a1c7c7335b1d2f453d48dd283965fc8c (patch)
tree77ccbd532f8d01e7e0666d62e713532e64193b68 /sys/dvb/gstdvbsrc.h
parentb261441c068013a5c41dcb20e661534133ef7f4a (diff)
downloadgst-plugins-bad-de0a7a01a1c7c7335b1d2f453d48dd283965fc8c.tar.gz
gst-plugins-bad-de0a7a01a1c7c7335b1d2f453d48dd283965fc8c.tar.bz2
gst-plugins-bad-de0a7a01a1c7c7335b1d2f453d48dd283965fc8c.zip
po/POTFILES.in: add dvbsrc
Original commit message from CVS: * po/POTFILES.in: add dvbsrc * sys/dvb/gstdvbsrc.c: (gst_dvbsrc_class_init), (gst_dvbsrc_init), (gst_dvbsrc_set_property), (gst_dvbsrc_get_property), (gst_dvbsrc_open_frontend), (gst_dvbsrc_open_dvr), (gst_dvbsrc_finalize), (read_device), (gst_dvbsrc_create), (gst_dvbsrc_start), (gst_dvbsrc_frontend_status), (gst_dvbsrc_tune), (gst_dvbsrc_unset_pes_filters), (gst_dvbsrc_set_pes_filter): * sys/dvb/gstdvbsrc.h: adapter-prefix is a terrible name for a device, so replace it. strerror should be used immediately after the syscall related to it. Actually throw a reasonable GST_ELEMENT_ERROR if we fail to open (pretty easy to trigger by opening the same device twice). Use _OBJECT macros where it makes sense. This element is going to need some work before it moves.
Diffstat (limited to 'sys/dvb/gstdvbsrc.h')
-rw-r--r--sys/dvb/gstdvbsrc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dvb/gstdvbsrc.h b/sys/dvb/gstdvbsrc.h
index 8bfa0e57..3edb903a 100644
--- a/sys/dvb/gstdvbsrc.h
+++ b/sys/dvb/gstdvbsrc.h
@@ -22,9 +22,9 @@ extern "C"
#define IPACKS 2048
#define TS_SIZE 188
#define IN_SIZE TS_SIZE*10
-#define MAX_ATTEMPTS 10 // limit timeouts for poll
+#define MAX_ATTEMPTS 10 /* limit timeouts for poll */
-#define DEFAULT_ADAPTER_PREFIX "/dev/dvb/adapter0"
+#define DEFAULT_DEVICE "/dev/dvb/adapter0"
#define DEFAULT_SYMBOL_RATE 0
#define DEFAULT_BUFFER_SIZE 8192
#define DEFAULT_DISEQC_SRC -1 /* disabled */
@@ -57,7 +57,7 @@ extern "C"
int adapter_type;
- char *adapter_prefix;
+ char *device; /* the device directory with the sub-devices */
char *frontend_dev;
char *dvr_dev;
char *demux_dev;