mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
Don't throw compiler warnings with G_DISABLE_ASSERT
Disable code that warns about unused variables when G_DISABLE_ASSERT is defined, as it is in tarballs and pre-releases.
This commit is contained in:
parent
78e07d02eb
commit
d5f2742ad0
1 changed files with 8 additions and 1 deletions
|
@ -503,7 +503,10 @@ gst_gl_stereo_mix_process_frames (GstGLStereoMix * mixer, GPtrArray * frames)
|
|||
GstVideoAggregator *vagg = GST_VIDEO_AGGREGATOR (mixer);
|
||||
GstBuffer *converted_buffer, *inbuf;
|
||||
GstVideoInfo *out_info = &vagg->info;
|
||||
gint count = 0, n;
|
||||
gint count = 0;
|
||||
#ifndef G_DISABLE_ASSERT
|
||||
gint n;
|
||||
#endif
|
||||
gint v, views;
|
||||
gint valid_views = 0;
|
||||
|
||||
|
@ -574,8 +577,12 @@ gst_gl_stereo_mix_process_frames (GstGLStereoMix * mixer, GPtrArray * frames)
|
|||
return FALSE;
|
||||
|
||||
converted_buffer = mixer->primary_out;
|
||||
|
||||
#ifndef G_DISABLE_ASSERT
|
||||
n = gst_buffer_n_memory (converted_buffer);
|
||||
g_assert (n == GST_VIDEO_INFO_N_PLANES (out_info) * views);
|
||||
#endif
|
||||
|
||||
for (v = 0; v < views; v++) {
|
||||
gst_buffer_add_video_meta_full (converted_buffer, v,
|
||||
GST_VIDEO_INFO_FORMAT (out_info),
|
||||
|
|
Loading…
Reference in a new issue