flacparse: make conversion from TIME to DEFAULT format (samples) work
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 23 May 2011 12:23:21 +0000 (13:23 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 23 May 2011 12:23:21 +0000 (13:23 +0100)
Fix copy'n'paste error in the previous commit.

gst/audioparsers/gstflacparse.c

index 0c76655..0995d79 100644 (file)
@@ -1372,7 +1372,8 @@ gst_flac_parse_convert (GstBaseParse * parse,
       else
         *dest_value = -1;
       return TRUE;
-    } else if (src_format == GST_FORMAT_TIME && dest_format == GST_FORMAT_TIME) {
+    } else if (src_format == GST_FORMAT_TIME &&
+        dest_format == GST_FORMAT_DEFAULT) {
       if (src_value != -1)
         *dest_value =
             gst_util_uint64_scale (src_value, flacparse->samplerate,