mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-29 20:35:40 +00:00
baseaudiosink: fix unused variable compiler warning if debugging in core is disabled
https://bugzilla.gnome.org/show_bug.cgi?id=660150
This commit is contained in:
parent
becba526d9
commit
4e59e63ff7
1 changed files with 4 additions and 2 deletions
|
@ -1367,9 +1367,11 @@ gst_base_audio_sink_get_alignment (GstBaseAudioSink * sink,
|
|||
"align with prev sample, ABS (%" G_GINT64_FORMAT ") < %"
|
||||
G_GINT64_FORMAT, align, maxdrift);
|
||||
} else {
|
||||
gint64 diff_s G_GNUC_UNUSED;
|
||||
|
||||
/* calculate sample diff in seconds for error message */
|
||||
gint64 diff_s = gst_util_uint64_scale_int (diff, GST_SECOND,
|
||||
ringbuf->spec.rate);
|
||||
diff_s = gst_util_uint64_scale_int (diff, GST_SECOND, ringbuf->spec.rate);
|
||||
|
||||
/* timestamps drifted apart from previous samples too much, we need to
|
||||
* resync. We log this as an element warning. */
|
||||
GST_WARNING_OBJECT (sink,
|
||||
|
|
Loading…
Reference in a new issue