summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog12
m---------common0
-rw-r--r--ext/metadata/metadataexif.c7
-rw-r--r--ext/metadata/metadataxmp.c4
-rw-r--r--ext/mythtv/gstmythtvsrc.c2
-rw-r--r--ext/timidity/gstwildmidi.c4
6 files changed, 22 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 7387bd24..dd3343cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2008-07-08 Sebastian Dröge <sebastian.droege@collabora.co.uk>
+
+ Patch by:
+ Jonathan Rosser <jonathan dot rosser at rd dot bbc dot co dot uk>
+
+ * ext/metadata/metadataexif.c: (metadataparse_handle_unit_tags):
+ * ext/metadata/metadataxmp.c:
+ (metadataparse_xmp_iter_add_to_tag_list):
+ * ext/mythtv/gstmythtvsrc.c: (gst_mythtv_src_start):
+ * ext/timidity/gstwildmidi.c: (gst_wildmidi_loop):
+ Don't use declarations after statements.
+
2008-07-07 Zaheer Abbas Merali <zaheerabbas at merali dot org>
patch by: Alessandro Decina
diff --git a/common b/common
-Subproject 593bb114c6f5c32b529aa6443be4c2d60d6484c
+Subproject 79ade7b9c9bf47eee491ceee4cf3ea116140ad3
diff --git a/ext/metadata/metadataexif.c b/ext/metadata/metadataexif.c
index 89119e70..89c4e2b0 100644
--- a/ext/metadata/metadataexif.c
+++ b/ext/metadata/metadataexif.c
@@ -757,11 +757,12 @@ metadataparse_handle_unit_tags (ExifEntry * entry, MEUserData * meudata,
break;
case EXIF_TAG_GPS_ALTITUDE_REF:
- meudata->altitude_ref = entry->data[0];
-
+ {
const GValue *value = gst_tag_list_get_value_index (meudata->taglist,
GST_TAG_GPS_ALTITUDE, 0);
+ meudata->altitude_ref = entry->data[0];
+
if (value) {
gint n, d;
@@ -774,7 +775,7 @@ metadataparse_handle_unit_tags (ExifEntry * entry, MEUserData * meudata,
}
}
}
-
+ }
break;
case EXIF_TAG_GPS_LATITUDE_REF:
{
diff --git a/ext/metadata/metadataxmp.c b/ext/metadata/metadataxmp.c
index 7291c84d..2aa386eb 100644
--- a/ext/metadata/metadataxmp.c
+++ b/ext/metadata/metadataxmp.c
@@ -756,7 +756,7 @@ metadataparse_xmp_iter_add_to_tag_list (GstTagList * taglist,
GstTagMergeMode mode, const char *path, const char *value,
const SchemaMap * schema_map, const uint32_t opt)
{
-
+ GType type;
const SchemaTagMap *smaptag =
metadataparse_xmp_get_tagsmap_from_path (schema_map, path, opt);
@@ -766,7 +766,7 @@ metadataparse_xmp_iter_add_to_tag_list (GstTagList * taglist,
if (NULL == smaptag->gst_tag)
goto done;
- GType type = gst_tag_get_type (smaptag->gst_tag);
+ type = gst_tag_get_type (smaptag->gst_tag);
switch (type) {
case G_TYPE_STRING:
diff --git a/ext/mythtv/gstmythtvsrc.c b/ext/mythtv/gstmythtvsrc.c
index 894d9b68..4d1ddb53 100644
--- a/ext/mythtv/gstmythtvsrc.c
+++ b/ext/mythtv/gstmythtvsrc.c
@@ -535,8 +535,8 @@ gst_mythtv_src_start (GstBaseSrc * bsrc)
src->live_tv = gmyth_uri_is_livetv (gmyth_uri);
if (src->live_tv) {
- src->spawn_livetv = gmyth_livetv_new (src->backend_info);
gchar *ch = gmyth_uri_get_channel_name (gmyth_uri);
+ src->spawn_livetv = gmyth_livetv_new (src->backend_info);
if (ch != NULL)
src->channel_name = ch;
diff --git a/ext/timidity/gstwildmidi.c b/ext/timidity/gstwildmidi.c
index b8f72aa8..fa5b89d3 100644
--- a/ext/timidity/gstwildmidi.c
+++ b/ext/timidity/gstwildmidi.c
@@ -759,9 +759,11 @@ gst_wildmidi_loop (GstPad * sinkpad)
}
if (wildmidi->o_segment_changed) {
+ GstSegment *segment;
+
GST_DEBUG_OBJECT (wildmidi, "segment changed");
- GstSegment *segment = gst_wildmidi_get_segment (wildmidi, GST_FORMAT_TIME,
+ segment = gst_wildmidi_get_segment (wildmidi, GST_FORMAT_TIME,
!wildmidi->o_new_segment);
GST_LOG_OBJECT (wildmidi,