diff options
author | Jens Granseuer <jensgr@gmx.net> | 2008-02-22 05:33:59 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2008-02-22 05:33:59 +0000 |
commit | 266e4741cd2c5ddde52fc9d4a7062abd87263da9 (patch) | |
tree | 1f74b9b6e0a5876fc014f863dbcbbf3ab59b758e /gst/librfb/gstrfbsrc.c | |
parent | 6c322640d53093d0e34961ef8cbaeaac1290ae21 (diff) | |
download | gst-plugins-bad-266e4741cd2c5ddde52fc9d4a7062abd87263da9.tar.gz gst-plugins-bad-266e4741cd2c5ddde52fc9d4a7062abd87263da9.tar.bz2 gst-plugins-bad-266e4741cd2c5ddde52fc9d4a7062abd87263da9.zip |
Some C89 fixes, moving variable declarations to the beginning of a block. Fixes bug #517937.
Original commit message from CVS:
Patch by: Jens Granseuer <jensgr at gmx dot net>
* gst/librfb/gstrfbsrc.c: (gst_rfb_property_set_version):
* gst/librfb/rfbdecoder.c: (rfb_decoder_message_set_encodings),
(rfb_decoder_state_set_encodings):
* gst/mpegtsparse/mpegtspacketizer.c:
(mpegts_packetizer_parse_nit), (mpegts_packetizer_parse_sdt),
(mpegts_packetizer_parse_eit):
* sys/fbdev/gstfbdevsink.c: (gst_fbdevsink_getcaps),
(gst_fbdevsink_setcaps), (gst_fbdevsink_render):
Some C89 fixes, moving variable declarations to the beginning
of a block. Fixes bug #517937.
Diffstat (limited to 'gst/librfb/gstrfbsrc.c')
-rw-r--r-- | gst/librfb/gstrfbsrc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gst/librfb/gstrfbsrc.c b/gst/librfb/gstrfbsrc.c index b218fceb..a2b4eca8 100644 --- a/gst/librfb/gstrfbsrc.c +++ b/gst/librfb/gstrfbsrc.c @@ -192,11 +192,14 @@ gst_rfb_src_dispose (GObject * object) static void gst_rfb_property_set_version (GstRfbSrc * src, gchar * value) { + gchar *major; + gchar *minor; + g_return_if_fail (src != NULL); g_return_if_fail (value != NULL); - gchar *major = g_strdup (value); - gchar *minor = g_strrstr (value, "."); + major = g_strdup (value); + minor = g_strrstr (value, "."); g_return_if_fail (minor != NULL); |