summaryrefslogtreecommitdiffstats
path: root/ext/spc
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-07-08 13:31:37 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-07-08 13:31:37 +0000
commitc8a54904b232087dac1dd5eded8a9ad9008cc0f9 (patch)
tree8c0e06f0538ddfe2893051b4b7e56ddcd1c0ad64 /ext/spc
parent58bc2cae2eef58f1b0e3d02a6a1c9d1efbf1f82a (diff)
downloadgst-plugins-bad-c8a54904b232087dac1dd5eded8a9ad9008cc0f9.tar.gz
gst-plugins-bad-c8a54904b232087dac1dd5eded8a9ad9008cc0f9.tar.bz2
gst-plugins-bad-c8a54904b232087dac1dd5eded8a9ad9008cc0f9.zip
Don't use declarations after statements in the remaining code.
Original commit message from CVS: * ext/spc/gstspc.c: (spc_setup): * gst/deinterlace2/tvtime/tomsmocomp/SearchLoopTop.inc: Don't use declarations after statements in the remaining code.
Diffstat (limited to 'ext/spc')
-rw-r--r--ext/spc/gstspc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/spc/gstspc.c b/ext/spc/gstspc.c
index 3eee98f0..b8d7810a 100644
--- a/ext/spc/gstspc.c
+++ b/ext/spc/gstspc.c
@@ -454,16 +454,19 @@ static gboolean
spc_setup (GstSpcDec * spc)
{
guchar *data = GST_BUFFER_DATA (spc->buf);
+ spc_tag_info *info;
+ GstTagList *taglist;
+ guint64 total_duration;
if (!spc_negotiate (spc)) {
return FALSE;
}
- spc_tag_info *info = &(spc->tag_info);
+ info = &(spc->tag_info);
spc_tag_get_info (data, GST_BUFFER_SIZE (spc->buf), info);
- GstTagList *taglist = gst_tag_list_new ();
+ taglist = gst_tag_list_new ();
if (info->title)
gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_TITLE,
@@ -506,8 +509,7 @@ spc_setup (GstSpcDec * spc)
gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_ENCODER,
info->emulator == EMU_ZSNES ? "ZSNES" : "Snes9x", NULL);
- guint64 total_duration =
- (guint64) (gst_spc_duration (spc) + gst_spc_fadeout (spc));
+ total_duration = (guint64) (gst_spc_duration (spc) + gst_spc_fadeout (spc));
gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE,
GST_TAG_DURATION, total_duration,