[tracker/tracker-0.12] tracker-extract-gstreamer: Small code style/warning clean ups
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.12] tracker-extract-gstreamer: Small code style/warning clean ups
- Date: Wed, 5 Oct 2011 08:59:33 +0000 (UTC)
commit e0816e7cc2a5f75bd82daaf718a16aa555c14817
Author: Martyn Russell <martyn lanedo com>
Date: Fri Sep 30 15:22:36 2011 +0100
tracker-extract-gstreamer: Small code style/warning clean ups
src/tracker-extract/tracker-cue-sheet.h | 2 +-
src/tracker-extract/tracker-extract-gstreamer.c | 9 ++++-----
2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/tracker-extract/tracker-cue-sheet.h b/src/tracker-extract/tracker-cue-sheet.h
index 0044a75..6486120 100644
--- a/src/tracker-extract/tracker-cue-sheet.h
+++ b/src/tracker-extract/tracker-cue-sheet.h
@@ -40,7 +40,7 @@ typedef struct {
GList *entry_list;
} TrackerToc;
-void tracker_toc_free (TrackerToc *toc);
+void tracker_toc_free (TrackerToc *toc);
TrackerToc *tracker_cue_sheet_parse (const gchar *cue_sheet);
TrackerToc *tracker_cue_sheet_parse_uri (const gchar *uri);
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index 6417e3b..e297415 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -418,7 +418,7 @@ get_embedded_album_art (MetadataExtractor *extractor)
gint type;
buffer = gst_value_get_buffer (value);
- caps = gst_buffer_get_caps (buffer);
+ caps = gst_buffer_get_caps (buffer);
caps_struct = gst_caps_get_structure (buffer->caps, 0);
gst_structure_get_enum (caps_struct,
@@ -426,12 +426,13 @@ get_embedded_album_art (MetadataExtractor *extractor)
GST_TYPE_TAG_IMAGE_TYPE,
&type);
- if ((type == GST_TAG_IMAGE_TYPE_FRONT_COVER)||
- ((type == GST_TAG_IMAGE_TYPE_UNDEFINED)&&(extractor->album_art_size == 0))) {
+ if (type == GST_TAG_IMAGE_TYPE_FRONT_COVER ||
+ (type == GST_TAG_IMAGE_TYPE_UNDEFINED && extractor->album_art_size == 0)) {
extractor->album_art_data = buffer->data;
extractor->album_art_size = buffer->size;
extractor->album_art_mime = gst_structure_get_name (caps_struct);
gst_caps_unref (caps);
+
return TRUE;
}
@@ -461,7 +462,6 @@ get_embedded_album_art (MetadataExtractor *extractor)
return FALSE;
}
-
static void
extractor_guess_content_type (MetadataExtractor *extractor)
{
@@ -1272,7 +1272,6 @@ discoverer_init_and_run (MetadataExtractor *extractor,
extractor->streams = gst_discoverer_info_get_stream_list (info);
for (l = extractor->streams; l; l = g_list_next (l)) {
GstDiscovererStreamInfo *stream = l->data;
- GstTagList *tmp;
if (G_TYPE_CHECK_INSTANCE_TYPE (stream, GST_TYPE_DISCOVERER_AUDIO_INFO)) {
GstDiscovererAudioInfo *audio = (GstDiscovererAudioInfo*)stream;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]