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 696714 - wavenc: add 'note' chunk support
wavenc: add 'note' chunk support
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal enhancement
: 1.1.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-03-27 16:14 UTC by Anton Belka
Modified: 2013-04-11 19:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] wavenc: add 'note' chunk support (11.46 KB, patch)
2013-03-27 16:14 UTC, Anton Belka
none Details | Review
[PATCH] wavenc: add 'note' chunk support (11.48 KB, patch)
2013-03-27 16:44 UTC, Anton Belka
none Details | Review
[PATCH] wavenc: add 'note' chunk support (12.03 KB, patch)
2013-03-27 22:40 UTC, Anton Belka
needs-work Details | Review
[PATCH] wavenc: add 'note' chunk support (11.84 KB, patch)
2013-04-11 17:56 UTC, Anton Belka
needs-work Details | Review
[PATCH] wavenc: add 'note' chunk support (11.81 KB, patch)
2013-04-11 18:44 UTC, Anton Belka
committed Details | Review

Description Anton Belka 2013-03-27 16:14:56 UTC
Created attachment 239969 [details] [review]
[PATCH] wavenc: add 'note' chunk support

Most of the code TOC support rewritten and improved. Added support 'note' chunk. Not sure about commit message, please fix it.
Comment 1 Anton Belka 2013-03-27 16:21:37 UTC
I'll never be in a hurry, founded small bug...
Comment 2 Anton Belka 2013-03-27 16:44:01 UTC
Created attachment 239972 [details] [review]
[PATCH] wavenc: add 'note' chunk support
Comment 3 Anton Belka 2013-03-27 22:40:11 UTC
Created attachment 239999 [details] [review]
[PATCH] wavenc: add 'note' chunk support
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2013-04-11 07:24:53 UTC
Review of attachment 239999 [details] [review]:

A few small comments. Looks good otherwise. Thanks.

::: gst/wavenc/gstwavenc.c
@@ +638,2 @@
 static gboolean
+gst_wavenc_check_cue_id (guint32 id, GList * list)

rename to gst_wavenc_is_cue_id_unique() ?

@@ +661,3 @@
+  gst_toc_entry_get_start_stop_times (entry, &start, NULL);
+
+  cue = g_new0 (GstWavEncCue, 1);

just use g_new(GstWavEncCue, 1); when you initialize all fields

@@ +687,3 @@
+      return FALSE;
+  }
+  return TRUE;

here too.

@@ +712,3 @@
+  }
+
+  if (tags != NULL) {

and here too.

@@ +855,3 @@
+      cues_size += 24;
+      list = g_list_next (list);
+    }

cues_size += 24 * g_list_length(wavenc->cues);

also below.
Comment 5 Anton Belka 2013-04-11 17:56:40 UTC
Created attachment 241288 [details] [review]
[PATCH] wavenc: add 'note' chunk support
Comment 6 Stefan Sauer (gstreamer, gtkdoc dev) 2013-04-11 18:40:25 UTC
Review of attachment 241288 [details] [review]:

::: gst/wavenc/gstwavenc.c
@@ +859,3 @@
+  /* count labls size */
+  if (wavenc->labls) {
+  } else {

list = wavenc->labls

@@ +870,3 @@
+  /* count notes size */
+  if (wavenc->notes) {
+    list = g_list_first (wavenc->labls);

list = wavenc->notes
Comment 7 Anton Belka 2013-04-11 18:44:07 UTC
Created attachment 241291 [details] [review]
[PATCH] wavenc: add 'note' chunk support

Fixed!