fail_unless_track_gain (tag_list, -6.20);
/* Album is not finished yet: */
fail_if_album_tags (tag_list);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
fail_unless_num_tracks (element, 1);
/* No buffer for the last track. */
fail_unless_album_gain (tag_list, -6.20);
/* No track tags should be posted, as there was no data for it: */
fail_if_track_tags (tag_list);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
fail_unless_num_tracks (element, 0);
cleanup_rganalysis (element);
send_eos_event (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 1.369);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
/* Swapped channels. */
send_flush_events (element);
send_eos_event (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 1.369);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
/* Mono. */
send_flush_events (element);
send_eos_event (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 1.369);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
cleanup_rganalysis (element);
}
send_eos_event (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 0.5);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
/* Swapped channels. */
send_flush_events (element);
send_eos_event (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 0.5);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
/* Mono. */
send_flush_events (element);
send_eos_event (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 0.5);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
/* Half amplitude, negative variant. */
send_flush_events (element);
send_eos_event (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 0.5);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
/* Swapped channels. */
send_flush_events (element);
send_eos_event (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 0.5);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
/* Mono. */
send_flush_events (element);
send_eos_event (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 0.5);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
/* Now check for correct normalization of the peak value: Sample
send_eos_event (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 32767. / 32768.);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
/* Swapped channels. */
send_flush_events (element);
send_eos_event (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 32767. / 32768.);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
/* Mono. */
send_flush_events (element);
send_eos_event (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 32767. / 32768.);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
/* Negative variant, reaching 1.0. */
send_eos_event (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 1.0);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
/* Swapped channels. */
send_flush_events (element);
send_eos_event (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 1.0);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
/* Mono. */
send_flush_events (element);
send_eos_event (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 1.0);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
cleanup_rganalysis (element);
}
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 1.0);
fail_if_album_tags (tag_list);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
fail_unless_num_tracks (element, 1);
send_flush_events (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 0.5);
fail_unless_album_peak (tag_list, 1.0);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
fail_unless_num_tracks (element, 0);
/* Try a second album: */
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 0.4);
fail_if_album_tags (tag_list);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
fail_unless_num_tracks (element, 2);
send_flush_events (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 0.45);
fail_if_album_tags (tag_list);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
fail_unless_num_tracks (element, 1);
send_flush_events (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 0.2);
fail_unless_album_peak (tag_list, 0.45);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
fail_unless_num_tracks (element, 0);
/* And now a single track, not in album mode (num-tracks is 0
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 0.1);
fail_if_album_tags (tag_list);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
cleanup_rganalysis (element);
}
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 1.0);
fail_if_album_tags (tag_list);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
g_object_set (element, "num-tracks", 1, NULL);
send_flush_events (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 0.5);
fail_unless_album_peak (tag_list, 0.5);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
fail_unless_num_tracks (element, 0);
cleanup_rganalysis (element);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 1.0);
fail_if_album_tags (tag_list);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
fail_unless_num_tracks (element, 1);
g_object_set (element, "num-tracks", 0, NULL);
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 0.5);
fail_if_album_tags (tag_list);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
cleanup_rganalysis (element);
}
fail_unless_track_peak (tag_list, 0.75);
fail_unless_track_gain (tag_list, -15.70);
fail_if_album_tags (tag_list);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
send_flush_events (element);
send_segment_event (element);
fail_unless_track_peak (tag_list, 0.5);
fail_unless_track_gain (tag_list, -12.22);
fail_if_album_tags (tag_list);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
send_flush_events (element);
send_segment_event (element);
/* Strangely, wavegain reports -12.17 for the album, but the fixed
* metaflac agrees to us. Could be a 32767 vs. 32768 issue. */
fail_unless_album_gain (tag_list, -12.18);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
cleanup_rganalysis (element);
}
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 0.25);
fail_unless_track_gain (tag_list, get_expected_gain (44100));
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
cleanup_rganalysis (element);
}
fail_unless_track_peak (tag_list, 0.25);
fail_unless_track_gain (tag_list, get_expected_gain (44100));
fail_if_album_tags (tag_list);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
cleanup_rganalysis (element);
}
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 0.25);
fail_unless_track_gain (tag_list, get_expected_gain (8000));
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
cleanup_rganalysis (element);
}
fail_unless_track_peak (tag_list, 0.25);
fail_unless_track_gain (tag_list, get_expected_gain (44100));
fail_if_album_tags (tag_list);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
fail_unless_num_tracks (element, 1);
send_flush_events (element);
fail_unless_track_gain (tag_list, get_expected_gain (44100));
fail_unless_album_peak (tag_list, 0.25);
fail_unless_album_gain (tag_list, get_expected_gain (44100));
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
fail_unless_num_tracks (element, 0);
cleanup_rganalysis (element);
fail_unless_track_peak (tag_list, 0.25);
fail_unless_track_gain (tag_list, get_expected_gain (8000));
fail_if_album_tags (tag_list);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
cleanup_rganalysis (element);
}
fail_unless_track_peak (tag_list, 0.25);
fail_unless_track_gain (tag_list, get_expected_gain (8000));
fail_if_album_tags (tag_list);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
fail_unless_num_tracks (element, 1);
/* The second track has indeed full tags, but although being not forced, this
/* Statistical processing leads to the second track being
* ignored for the gain (because it is so short): */
fail_unless_album_gain (tag_list, get_expected_gain (8000));
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
fail_unless_num_tracks (element, 0);
cleanup_rganalysis (element);
fail_unless_track_peak (tag_list, 0.25);
fail_unless_track_gain (tag_list, get_expected_gain (8000));
fail_if_album_tags (tag_list);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
fail_unless_num_tracks (element, 1);
/* Disabling album processing before end of album: */
fail_unless (gst_tag_list_get_double (tag_list, GST_TAG_REFERENCE_LEVEL,
&ref_level) && MATCH_GAIN (ref_level, 89.),
"Incorrect reference level tag");
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
g_object_set (element, "reference-level", 83., "num-tracks", 2, NULL);
fail_unless (gst_tag_list_get_double (tag_list, GST_TAG_REFERENCE_LEVEL,
&ref_level) && MATCH_GAIN (ref_level, 83.),
"Incorrect reference level tag");
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
send_flush_events (element);
send_segment_event (element);
fail_unless (gst_tag_list_get_double (tag_list, GST_TAG_REFERENCE_LEVEL,
&ref_level) && MATCH_GAIN (ref_level, 83.),
"Incorrect reference level tag");
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
cleanup_rganalysis (element);
}
tag_list = poll_tags (element);
fail_unless_track_peak (tag_list, 0.25);
fail_unless_track_gain (tag_list, supported_rates[i].gain);
- gst_tag_list_free (tag_list);
+ gst_tag_list_unref (tag_list);
}
cleanup_rganalysis (element);
fail_unless_track_peak (tag_list, 0.25); \
fail_unless_track_gain (tag_list, \
get_expected_gain (sample_rate)); \
- gst_tag_list_free (tag_list); \
+ gst_tag_list_unref (tag_list); \
\
cleanup_rganalysis (element); \
} \
fail_unless_track_peak (tag_list, 0.25); \
fail_unless_track_gain (tag_list, \
get_expected_gain (sample_rate)); \
- gst_tag_list_free (tag_list); \
+ gst_tag_list_unref (tag_list); \
\
cleanup_rganalysis (element); \
} \
fail_unless_track_peak (tag_list, 0.25); \
fail_unless_track_gain (tag_list, \
get_expected_gain (sample_rate)); \
- gst_tag_list_free (tag_list); \
+ gst_tag_list_unref (tag_list); \
\
cleanup_rganalysis (element); \
} \
fail_unless_track_peak (tag_list, 0.25); \
fail_unless_track_gain (tag_list, \
get_expected_gain (sample_rate)); \
- gst_tag_list_free (tag_list); \
+ gst_tag_list_unref (tag_list); \
\
cleanup_rganalysis (element); \
} \