mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
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.
This commit is contained in:
parent
58bc2cae2e
commit
c8a54904b2
3 changed files with 14 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2008-07-08 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||||
|
|
||||||
|
* ext/spc/gstspc.c: (spc_setup):
|
||||||
|
* gst/deinterlace2/tvtime/tomsmocomp/SearchLoopTop.inc:
|
||||||
|
Don't use declarations after statements in the remaining code.
|
||||||
|
|
||||||
2008-07-08 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
2008-07-08 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||||
|
|
||||||
Patch by:
|
Patch by:
|
||||||
|
|
|
@ -454,16 +454,19 @@ static gboolean
|
||||||
spc_setup (GstSpcDec * spc)
|
spc_setup (GstSpcDec * spc)
|
||||||
{
|
{
|
||||||
guchar *data = GST_BUFFER_DATA (spc->buf);
|
guchar *data = GST_BUFFER_DATA (spc->buf);
|
||||||
|
spc_tag_info *info;
|
||||||
|
GstTagList *taglist;
|
||||||
|
guint64 total_duration;
|
||||||
|
|
||||||
if (!spc_negotiate (spc)) {
|
if (!spc_negotiate (spc)) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
spc_tag_info *info = &(spc->tag_info);
|
info = &(spc->tag_info);
|
||||||
|
|
||||||
spc_tag_get_info (data, GST_BUFFER_SIZE (spc->buf), 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)
|
if (info->title)
|
||||||
gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_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,
|
gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_ENCODER,
|
||||||
info->emulator == EMU_ZSNES ? "ZSNES" : "Snes9x", NULL);
|
info->emulator == EMU_ZSNES ? "ZSNES" : "Snes9x", NULL);
|
||||||
|
|
||||||
guint64 total_duration =
|
total_duration = (guint64) (gst_spc_duration (spc) + gst_spc_fadeout (spc));
|
||||||
(guint64) (gst_spc_duration (spc) + gst_spc_fadeout (spc));
|
|
||||||
|
|
||||||
gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE,
|
gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE,
|
||||||
GST_TAG_DURATION, total_duration,
|
GST_TAG_DURATION, total_duration,
|
||||||
|
|
|
@ -17,6 +17,8 @@ int64_t Min_Vals = 0x0000000000000000ull;
|
||||||
int64_t Max_Vals = 0x0000000000000000ull;
|
int64_t Max_Vals = 0x0000000000000000ull;
|
||||||
int64_t ShiftMask = 0xfefffefffefffeffull;
|
int64_t ShiftMask = 0xfefffefffefffeffull;
|
||||||
|
|
||||||
|
long oldbx;
|
||||||
|
|
||||||
// long is int32 on ARCH_368, int64 on ARCH_AMD64. Declaring it this way
|
// long is int32 on ARCH_368, int64 on ARCH_AMD64. Declaring it this way
|
||||||
// saves a lot of xor's to delete 64bit garbage.
|
// saves a lot of xor's to delete 64bit garbage.
|
||||||
|
|
||||||
|
@ -91,8 +93,6 @@ long dst_pitchw = dst_pitch; // local stor so asm can ref
|
||||||
#define _oldbx "%18"
|
#define _oldbx "%18"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
long oldbx;
|
|
||||||
|
|
||||||
for (y=1; y < FldHeight-1; y++)
|
for (y=1; y < FldHeight-1; y++)
|
||||||
{
|
{
|
||||||
// pretend it's indented -->>
|
// pretend it's indented -->>
|
||||||
|
|
Loading…
Reference in a new issue