sys/dvb/gstdvbsrc.c: Actually set the TONE parameter for DVB-S when we should.
authorZaheer Abbas Merali <zaheerabbas@merali.org>
Fri, 17 Nov 2006 18:51:58 +0000 (18:51 +0000)
committerZaheer Abbas Merali <zaheerabbas@merali.org>
Fri, 17 Nov 2006 18:51:58 +0000 (18:51 +0000)
Original commit message from CVS:
2006-11-17  Zaheer Abbas Merali  <zaheerabbas at merali dot org>

* sys/dvb/gstdvbsrc.c: (gst_dvbsrc_tune):
Actually set the TONE parameter for DVB-S when we should.

ChangeLog
sys/dvb/gstdvbsrc.c

index 1cf1a438f1a6e727070f08ed119d88a6ce07ce51..c2a12ed58078cfbf0347d0ead0a3198166746afe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-17  Zaheer Abbas Merali  <zaheerabbas at merali dot org>
+
+       * sys/dvb/gstdvbsrc.c: (gst_dvbsrc_tune):
+       Actually set the TONE parameter for DVB-S when we should.
+
 2006-11-16  David Schleef  <ds@schleef.org>
 
        * gst/librfb/rfbdecoder.c: Fixes for 64-bit architectures.
index 6012d8237587e8457ceb1ffc106238edae5e35d6..7a65c40c5c3e38b73fec8facdcda081770c68374 100644 (file)
@@ -1076,17 +1076,13 @@ gst_dvbsrc_tune (GstDvbSrc * object)
         // this must be an absolute frequency
         if (freq < SLOF) {
           feparams.frequency = (freq - LOF1);
-          if (object->tone < 0)
-            object->tone = SEC_TONE_OFF;
         } else {
           feparams.frequency = (freq - LOF2);
-          if (object->tone < 0)
-            object->tone = SEC_TONE_ON;
+          object->tone = SEC_TONE_ON;
         }
       } else {
         // this is an L-Band frequency
         feparams.frequency = freq;
-        object->tone = SEC_TONE_OFF;
       }
       GST_INFO_OBJECT (object,
           "tuning DVB-S to L-Band:%u, Pol:%d, srate=%u, 22kHz=%s",