mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 01:02:19 +00:00
deinterlace: Fix compiler warnings when compiling with G_DISABLE_ASSERT
This commit is contained in:
parent
e9613c8512
commit
b03a4d9155
1 changed files with 6 additions and 0 deletions
|
@ -310,7 +310,9 @@ gst_deinterlace_simple_method_deinterlace_frame_packed (GstDeinterlaceMethod *
|
||||||
GstVideoFrame * outframe, gint cur_field_idx)
|
GstVideoFrame * outframe, gint cur_field_idx)
|
||||||
{
|
{
|
||||||
GstDeinterlaceSimpleMethod *self = GST_DEINTERLACE_SIMPLE_METHOD (method);
|
GstDeinterlaceSimpleMethod *self = GST_DEINTERLACE_SIMPLE_METHOD (method);
|
||||||
|
#ifndef G_DISABLE_ASSERT
|
||||||
GstDeinterlaceMethodClass *dm_class = GST_DEINTERLACE_METHOD_GET_CLASS (self);
|
GstDeinterlaceMethodClass *dm_class = GST_DEINTERLACE_METHOD_GET_CLASS (self);
|
||||||
|
#endif
|
||||||
GstDeinterlaceScanlineData scanlines;
|
GstDeinterlaceScanlineData scanlines;
|
||||||
guint cur_field_flags;
|
guint cur_field_flags;
|
||||||
gint i;
|
gint i;
|
||||||
|
@ -519,7 +521,9 @@ gst_deinterlace_simple_method_deinterlace_frame_planar (GstDeinterlaceMethod *
|
||||||
GstVideoFrame * outframe, gint cur_field_idx)
|
GstVideoFrame * outframe, gint cur_field_idx)
|
||||||
{
|
{
|
||||||
GstDeinterlaceSimpleMethod *self = GST_DEINTERLACE_SIMPLE_METHOD (method);
|
GstDeinterlaceSimpleMethod *self = GST_DEINTERLACE_SIMPLE_METHOD (method);
|
||||||
|
#ifndef G_DISABLE_ASSERT
|
||||||
GstDeinterlaceMethodClass *dm_class = GST_DEINTERLACE_METHOD_GET_CLASS (self);
|
GstDeinterlaceMethodClass *dm_class = GST_DEINTERLACE_METHOD_GET_CLASS (self);
|
||||||
|
#endif
|
||||||
const GstVideoFrame *frame0, *frame1, *frame2, *framep;
|
const GstVideoFrame *frame0, *frame1, *frame2, *framep;
|
||||||
guint cur_field_flags = history[cur_field_idx].flags;
|
guint cur_field_flags = history[cur_field_idx].flags;
|
||||||
gint i;
|
gint i;
|
||||||
|
@ -562,7 +566,9 @@ gst_deinterlace_simple_method_deinterlace_frame_nv12 (GstDeinterlaceMethod *
|
||||||
GstVideoFrame * outframe, gint cur_field_idx)
|
GstVideoFrame * outframe, gint cur_field_idx)
|
||||||
{
|
{
|
||||||
GstDeinterlaceSimpleMethod *self = GST_DEINTERLACE_SIMPLE_METHOD (method);
|
GstDeinterlaceSimpleMethod *self = GST_DEINTERLACE_SIMPLE_METHOD (method);
|
||||||
|
#ifndef G_DISABLE_ASSERT
|
||||||
GstDeinterlaceMethodClass *dm_class = GST_DEINTERLACE_METHOD_GET_CLASS (self);
|
GstDeinterlaceMethodClass *dm_class = GST_DEINTERLACE_METHOD_GET_CLASS (self);
|
||||||
|
#endif
|
||||||
const GstVideoFrame *frame0, *frame1, *frame2, *framep;
|
const GstVideoFrame *frame0, *frame1, *frame2, *framep;
|
||||||
guint cur_field_flags = history[cur_field_idx].flags;
|
guint cur_field_flags = history[cur_field_idx].flags;
|
||||||
gint i;
|
gint i;
|
||||||
|
|
Loading…
Reference in a new issue