mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
interaudiosrc: Fix compiler warning about unused variables
gstinteraudiosrc.c: In function 'gst_inter_audio_src_create': gstinteraudiosrc.c:339:27: error: variable 'buffer_samples' set but not used [-Werror=unused-but-set-variable] guint64 period_samples, buffer_samples; ^
This commit is contained in:
parent
5c7d0a1553
commit
017a8c8369
1 changed files with 2 additions and 5 deletions
|
@ -335,8 +335,8 @@ gst_inter_audio_src_create (GstBaseSrc * src, guint64 offset, guint size,
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GstBuffer *buffer;
|
GstBuffer *buffer;
|
||||||
guint n, bpf;
|
guint n, bpf;
|
||||||
guint64 period_time, buffer_time;
|
guint64 period_time;
|
||||||
guint64 period_samples, buffer_samples;
|
guint64 period_samples;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (interaudiosrc, "create");
|
GST_DEBUG_OBJECT (interaudiosrc, "create");
|
||||||
|
|
||||||
|
@ -356,10 +356,7 @@ gst_inter_audio_src_create (GstBaseSrc * src, guint64 offset, guint size,
|
||||||
}
|
}
|
||||||
|
|
||||||
bpf = interaudiosrc->surface->audio_info.bpf;
|
bpf = interaudiosrc->surface->audio_info.bpf;
|
||||||
buffer_time = interaudiosrc->surface->audio_buffer_time;
|
|
||||||
period_time = interaudiosrc->surface->audio_period_time;
|
period_time = interaudiosrc->surface->audio_period_time;
|
||||||
buffer_samples =
|
|
||||||
gst_util_uint64_scale (buffer_time, interaudiosrc->info.rate, GST_SECOND);
|
|
||||||
period_samples =
|
period_samples =
|
||||||
gst_util_uint64_scale (period_time, interaudiosrc->info.rate, GST_SECOND);
|
gst_util_uint64_scale (period_time, interaudiosrc->info.rate, GST_SECOND);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue