After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 656419 - [PATCH] minor refactoring in tracker-extract-gstreamer
[PATCH] minor refactoring in tracker-extract-gstreamer
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: Extractor
git master
Other Linux
: Normal enhancement
: ---
Assigned To: tracker-extractor
Jamie McCracken
Depends on:
Blocks:
 
 
Reported: 2011-08-12 18:17 UTC by Sam Thursfield
Modified: 2011-08-12 19:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tracker-extract-gstreamer: Tiny refactor (4.85 KB, patch)
2011-08-12 18:19 UTC, Sam Thursfield
committed Details | Review
tracker-extract-gstreamer: Fix compile warning (1.10 KB, patch)
2011-08-12 18:20 UTC, Sam Thursfield
committed Details | Review
tracker-extract-gstreamer: Remove unused functions (1.47 KB, patch)
2011-08-12 18:21 UTC, Sam Thursfield
committed Details | Review

Description Sam Thursfield 2011-08-12 18:17:00 UTC
These patches fix a couple of compile warnings, and add a replace_double_gst_tag() function which factors out a pattern that was used twice
Comment 1 Sam Thursfield 2011-08-12 18:19:07 UTC
Created attachment 193719 [details] [review]
tracker-extract-gstreamer: Tiny refactor
Comment 2 Sam Thursfield 2011-08-12 18:20:03 UTC
Created attachment 193721 [details] [review]
tracker-extract-gstreamer: Fix compile warning
Comment 3 Sam Thursfield 2011-08-12 18:21:02 UTC
Created attachment 193722 [details] [review]
tracker-extract-gstreamer: Remove unused functions
Comment 4 Martyn Russell 2011-08-12 18:51:08 UTC
Comment on attachment 193719 [details] [review]
tracker-extract-gstreamer: Tiny refactor

Only two nit-pick comments here:

+	if (! has_it)
+		return;

We don't usually use a space between the bang and variable.

+	gdouble  value;
+	gboolean has_it;

We don't align variables any more either.

But great patch other than that. These two are too insignificant to change though ;)
Comment 5 Martyn Russell 2011-08-12 18:51:22 UTC
Comment on attachment 193721 [details] [review]
tracker-extract-gstreamer: Fix compile warning

Nice patch :)
Comment 6 Martyn Russell 2011-08-12 18:51:48 UTC
Comment on attachment 193722 [details] [review]
tracker-extract-gstreamer: Remove unused functions

Yea, I've been wondering about removing these functions since I started seeing the warnings too. Makes sense in the end I think. Thanks.
Comment 7 Martyn Russell 2011-08-12 18:53:39 UTC
Usually we add "Fixes GB#123456" somewhere in a commit so we know when the bug is fixed and it gets picked up in the next release.

  http://live.gnome.org/Tracker/Documentation/GitCommitPolicy

Did you intend to submit any more patches or can we close this bug?

Thanks for the work here, it's appreciated!
Comment 8 Sam Thursfield 2011-08-12 19:08:10 UTC
Thanks, I'm done with this bug. I'll bear in mind your comments for next time :)