summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-04-13 09:27:08 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-04-13 09:27:08 +0000
commitaf42d19c76578234ac9903b68a5d130a654da455 (patch)
treeb961f9855895fc38db57611bb117c54207f82a1d
parent2893884a239d6c71a4efb65a5e635ec8aeeb4485 (diff)
Original commit message from CVS: Fix even more warnings
-rw-r--r--ext/ffmpeg/gstffmpegtypes.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/ffmpeg/gstffmpegtypes.c b/ext/ffmpeg/gstffmpegtypes.c
index 2ede355..3d4511e 100644
--- a/ext/ffmpeg/gstffmpegtypes.c
+++ b/ext/ffmpeg/gstffmpegtypes.c
@@ -61,9 +61,12 @@ gst_ffmpegtypes_typefind (GstBuffer *buffer, gpointer priv)
if (highest) {
GstCaps *caps;
caps = g_hash_table_lookup (global_types, highest->name);
- /* make sure we still hold a refcount to this caps */
- gst_caps_ref (caps);
- return caps;
+
+ if (caps) {
+ /* make sure we still hold a refcount to this caps */
+ gst_caps_ref (caps);
+ return caps;
+ }
}
return NULL;