The sample rate property needs 'sample_rate' not 'byte_rate'
authorJeremy Simon <jsimon13@yahoo.fr>
Sun, 26 Oct 2003 13:55:13 +0000 (13:55 +0000)
committerJeremy Simon <jsimon13@yahoo.fr>
Sun, 26 Oct 2003 13:55:13 +0000 (13:55 +0000)
Original commit message from CVS:
The sample rate property needs 'sample_rate' not 'byte_rate'

gst/asfdemux/gstasfdemux.c

index eb1b8d69f7f555c8f71aeece2fb04edc5a48bbc6..223fb9460b150aa40b4bda6ef633108ece7ab291 100644 (file)
@@ -1189,7 +1189,7 @@ gst_asf_demux_identify_guid (GstASFDemux *asf_demux,
        GST_CAPS_NEW (name,                                             \
                      mimetype,                                         \
                      "rate",     GST_PROPS_INT (                       \
-                                   GUINT32_FROM_LE (audio->byte_rate)), \
+                                   GUINT32_FROM_LE (audio->sample_rate)), \
                      "channels", GST_PROPS_INT (                       \
                                    GUINT16_FROM_LE (audio->channels)), \
                      __VA_ARGS__)                                      \
@@ -1207,7 +1207,7 @@ gst_asf_demux_identify_guid (GstASFDemux *asf_demux,
        GST_CAPS_NEW (name,                                             \
                      mimetype,                                         \
                      "rate",     GST_PROPS_INT (                       \
-                                   GUINT32_FROM_LE (audio->byte_rate)), \
+                                   GUINT32_FROM_LE (audio->sample_rate)), \
                      "channels", GST_PROPS_INT (                       \
                                    GUINT16_FROM_LE (audio->channels)), \
                      ##props)                                          \