[gstreamer-bugs] [Bug 623121] [queue2] downloaded areas of the media are not exposed

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Aug 31 03:32:55 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=623121
  GStreamer | gstreamer (core) | git

Sebastian Dröge <slomo> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #169148|none                        |reviewed
             status|                            |

--- Comment #9 from Sebastian Dröge <slomo at circular-chaos.org> 2010-08-31 10:32:53 UTC ---
Review of attachment 169148:
 --> (https://bugzilla.gnome.org/review?bug=623121&attachment=169148)

::: gst/gstquery.c
@@ +1304,3 @@
+  gst_structure_id_set (structure, GST_QUARK (BUFFERING_RANGES),
+      G_TYPE_VALUE_ARRAY, ranges_copy, NULL);
+  g_value_array_free (ranges_copy);

Why do you copy the array twice? One time manually and one time with
gst_structure_id_set()

@@ +1329,3 @@
+  value = gst_structure_id_get_value (structure, GST_QUARK
(BUFFERING_RANGES));
+  ranges = g_value_array_copy ((GValueArray *) g_value_get_boxed (value));
+  return ranges;

For other queries, events, etc the API usually is, that the parsed data is
owned by the query and only valid as long as the query is there.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the Gstreamer-bugs mailing list