diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-04-13 09:27:08 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-04-13 09:27:08 +0000 |
commit | af42d19c76578234ac9903b68a5d130a654da455 (patch) | |
tree | b961f9855895fc38db57611bb117c54207f82a1d | |
parent | 2893884a239d6c71a4efb65a5e635ec8aeeb4485 (diff) |
Fix even more warningsRELEASE-0_6_2RELEASE-0_6_1-PROVENTOBETRUE
Original commit message from CVS:
Fix even more warnings
-rw-r--r-- | ext/ffmpeg/gstffmpegtypes.c | 9 |
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; |