summaryrefslogtreecommitdiff
path: root/ext/cog
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2011-01-08 03:12:11 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-01-08 03:12:11 +0000
commitb9af27719dcfd604480e07a1f8392cc4429328a9 (patch)
treedebfb6407b582059f2011fdb8ead84e5e8a71373 /ext/cog
parent62c289f71dfe68f9ef6068498119345f744b3b19 (diff)
downloadgstreamer-plugins-bad-b9af27719dcfd604480e07a1f8392cc4429328a9.tar.gz
cog, schroedinger: fix warnings when compiling with -DG_DISABLE_ASSERT
Diffstat (limited to 'ext/cog')
-rw-r--r--ext/cog/gstcogdownsample.c1
-rw-r--r--ext/cog/gstcogutils.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/ext/cog/gstcogdownsample.c b/ext/cog/gstcogdownsample.c
index 5d6b4f9ed..8bec086c0 100644
--- a/ext/cog/gstcogdownsample.c
+++ b/ext/cog/gstcogdownsample.c
@@ -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);
diff --git a/ext/cog/gstcogutils.c b/ext/cog/gstcogutils.c
index 4d7c8b99f..ff23862f8 100644
--- a/ext/cog/gstcogutils.c
+++ b/ext/cog/gstcogutils.c
@@ -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);