After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 621404 - [dvbsrc] Set stats-reporting-interval on construction
[dvbsrc] Set stats-reporting-interval on construction
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 0.10.20
Assigned To: Tim-Philipp Müller
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-06-12 21:42 UTC by Sebastian Pölsterl
Modified: 2010-08-06 10:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Added G_PARAM_CONSTRUCT (521 bytes, patch)
2010-06-12 21:42 UTC, Sebastian Pölsterl
reviewed Details | Review
dvbsrc: align actual default values for properties with defaults in param spec (8.78 KB, patch)
2010-08-06 01:00 UTC, Tim-Philipp Müller
committed Details | Review

Description Sebastian Pölsterl 2010-06-12 21:42:20 UTC
The default value is set 100 but the property is not set when the object is constructed thus the default value is never set.
Comment 1 Sebastian Pölsterl 2010-06-12 21:42:58 UTC
Created attachment 163487 [details] [review]
Added G_PARAM_CONSTRUCT
Comment 2 Tim-Philipp Müller 2010-08-06 01:00:57 UTC
Created attachment 167227 [details] [review]
dvbsrc: align actual default values for properties with defaults in param spec

G_PARAM_CONSTRUCT works as a solution, but in GStreamer we don't use that really, we have DEFAULT_ defines and then assign the values in the instance init function, so let's do that instead.

There were many other properties where the actual defaults didn't line up with the alleged defaults. I hope this doesn't break anything.

gst-inspect-0.10 diff looks like this:


@@ -94,7 +94,7 @@
                         Unsigned Integer. Range: 0 - 4294967295 Default: 0 Current: 0
   bandwidth           : Bandwidth (DVB-T)
                         flags: readable, writable
-                        Enum "GstDvbSrcBandwidth" Default: 1, "7" Current: 0, "8"
+                        Enum "GstDvbSrcBandwidth" Default: 1, "7" Current: 1, "7"
                            (0): 8                - 8
                            (1): 7                - 7
                            (2): 6                - 6
@@ -114,7 +114,7 @@
                            (9):                  - AUTO
   code-rate-lp        : Low Priority Code Rate (DVB-T)
                         flags: readable, writable
-                        Enum "GstDvbSrcCode_Rate" Default: 1, "1/2" Current: 0, "NONE"
+                        Enum "GstDvbSrcCode_Rate" Default: 1, "1/2" Current: 1, "1/2"
                            (0): NONE             - NONE
                            (1): 1/2              - 1/2
                            (2): 2/3              - 2/3
@@ -127,7 +127,7 @@
                            (9):                  - AUTO
   guard               : Guard Interval (DVB-T)
                         flags: readable, writable
-                        Enum "GstDvbSrcGuard" Default: 1, "16" Current: 0, "32"
+                        Enum "GstDvbSrcGuard" Default: 1, "16" Current: 1, "16"
                            (0): 32               - 32
                            (1): 16               - 16
                            (2): 8                - 8
@@ -135,7 +135,7 @@
                            (4): AUTO             - AUTO
   modulation          : Modulation (DVB-T and DVB-C)
                         flags: readable, writable
-                        Enum "GstDvbSrcModulation" Default: 1, "QAM 16" Current: 0, "QPSK"
+                        Enum "GstDvbSrcModulation" Default: 1, "QAM 16" Current: 1, "QAM 16"
                            (0): QPSK             - QPSK
                            (1): QAM 16           - QAM 16
                            (2): QAM 32           - QAM 32
@@ -147,13 +147,13 @@
                            (8): 16VSB            - 16VSB
   trans-mode          : Transmission Mode (DVB-T)
                         flags: readable, writable
-                        Enum "GstDvbSrcTransmission_Mode" Default: 1, "8k" Current: 0, "2k"
+                        Enum "GstDvbSrcTransmission_Mode" Default: 1, "8k" Current: 1, "8k"
                            (0): 2k               - 2k
                            (1): 8k               - 8k
                            (2): AUTO             - AUTO
   hierarchy           : Hierarchy Information (DVB-T)
                         flags: readable, writable
-                        Enum "GstDvbSrcHierarchy" Default: 1, "1" Current: 0, "NONE"
+                        Enum "GstDvbSrcHierarchy" Default: 1, "1" Current: 1, "1"
                            (0): NONE             - NONE
                            (1): 1                - 1
                            (2): 2                - 2
@@ -164,10 +164,10 @@
                         Pointer. Write only
   inversion           : Inversion Information (DVB-T and DVB-C)
                         flags: readable, writable
-                        Enum "GstDvbSrcInversion" Default: 1, "ON" Current: 0, "OFF"
+                        Enum "GstDvbSrcInversion" Default: 1, "ON" Current: 1, "ON"
                            (0): OFF              - OFF
                            (1): ON               - ON
                            (2): AUTO             - AUTO
   stats-reporting-interval: The number of reads before reporting frontend stats
                         flags: readable, writable
-                        Unsigned Integer. Range: 0 - 4294967295 Default: 100 Current: 0
+                        Unsigned Integer. Range: 0 - 4294967295 Default: 100 Current: 100
Comment 3 Sebastian Dröge (slomo) 2010-08-06 09:48:53 UTC
Comment on attachment 167227 [details] [review]
dvbsrc: align actual default values for properties with defaults in param spec

Looks good IMHO
Comment 4 Tim-Philipp Müller 2010-08-06 10:30:52 UTC
Oh well, committed. If it causes problems, we can still fix it during the freeze.

 commit e2571b9f46038a962a306aa71df11e1e21161834
 Author: Tim-Philipp Müller <tim.muller@collabora.co.uk>
 Date:   Fri Aug 6 01:56:29 2010 +0100

    dvbsrc: align actual default values for properties with defaults in param spec
    
    https://bugzilla.gnome.org/show_bug.cgi?id=621404