cog, schroedinger: fix warnings when compiling with -DG_DISABLE_ASSERT
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 8 Jan 2011 03:12:11 +0000 (03:12 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 8 Jan 2011 03:12:11 +0000 (03:12 +0000)
ext/cog/gstcogdownsample.c
ext/cog/gstcogutils.c
ext/schroedinger/gstschroenc.c
ext/schroedinger/gstschroparse.c
ext/schroedinger/gstschroutils.c

index 5d6b4f9..8bec086 100644 (file)
@@ -357,6 +357,7 @@ gst_cogdownsample_transform (GstBaseTransform * base_transform,
       break;
     default:
       g_assert_not_reached ();
+      return GST_FLOW_ERROR;
   }
 
   frame = cog_virt_frame_new_unpack (frame);
index 4d7c8b9..ff23862 100644 (file)
@@ -126,6 +126,7 @@ gst_cog_buffer_wrap (GstBuffer * buf, GstVideoFormat format, int width,
       break;
     default:
       g_assert_not_reached ();
+      return NULL;
   }
   cog_frame_set_free_callback (frame, gst_cog_frame_free, buf);
 
index b4e50a9..7af28ea 100644 (file)
@@ -600,6 +600,7 @@ gst_schro_enc_get_caps (GstBaseVideoEncoder * base_video_encoder)
         state->par_d, NULL);
   } else {
     g_assert_not_reached ();
+    caps = NULL;
   }
 
   return caps;
index 25711c8..a734f2d 100644 (file)
@@ -579,6 +579,7 @@ gst_schro_parse_get_caps (GstBaseVideoParse * base_video_parse)
         state->par_d, NULL);
   } else {
     g_assert_not_reached ();
+    caps = NULL;
   }
 
   return caps;
index bb1f1bc..66514a3 100644 (file)
@@ -95,6 +95,7 @@ gst_schro_buffer_wrap (GstBuffer * buf, GstVideoFormat format, int width,
 #endif
     default:
       g_assert_not_reached ();
+      return NULL;
   }
   schro_frame_set_free_callback (frame, gst_schro_frame_free, buf);