cog, schroedinger: fix warnings when compiling with -DG_DISABLE_ASSERT

This commit is contained in:
Tim-Philipp Müller 2011-01-08 03:12:11 +00:00
parent 62c289f71d
commit b9af27719d
5 changed files with 5 additions and 0 deletions

View File

@ -357,6 +357,7 @@ gst_cogdownsample_transform (GstBaseTransform * base_transform,
break; break;
default: default:
g_assert_not_reached (); g_assert_not_reached ();
return GST_FLOW_ERROR;
} }
frame = cog_virt_frame_new_unpack (frame); frame = cog_virt_frame_new_unpack (frame);

View File

@ -126,6 +126,7 @@ gst_cog_buffer_wrap (GstBuffer * buf, GstVideoFormat format, int width,
break; break;
default: default:
g_assert_not_reached (); g_assert_not_reached ();
return NULL;
} }
cog_frame_set_free_callback (frame, gst_cog_frame_free, buf); cog_frame_set_free_callback (frame, gst_cog_frame_free, buf);

View File

@ -600,6 +600,7 @@ gst_schro_enc_get_caps (GstBaseVideoEncoder * base_video_encoder)
state->par_d, NULL); state->par_d, NULL);
} else { } else {
g_assert_not_reached (); g_assert_not_reached ();
caps = NULL;
} }
return caps; return caps;

View File

@ -579,6 +579,7 @@ gst_schro_parse_get_caps (GstBaseVideoParse * base_video_parse)
state->par_d, NULL); state->par_d, NULL);
} else { } else {
g_assert_not_reached (); g_assert_not_reached ();
caps = NULL;
} }
return caps; return caps;

View File

@ -95,6 +95,7 @@ gst_schro_buffer_wrap (GstBuffer * buf, GstVideoFormat format, int width,
#endif #endif
default: default:
g_assert_not_reached (); g_assert_not_reached ();
return NULL;
} }
schro_frame_set_free_callback (frame, gst_schro_frame_free, buf); schro_frame_set_free_callback (frame, gst_schro_frame_free, buf);