gst/playback/gstplaybasebin.c: Don't return NULL when querying the stream info value...
authorDan Williams <dcbw@redhat.com>
Mon, 23 Jul 2007 11:18:35 +0000 (11:18 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Mon, 23 Jul 2007 11:18:35 +0000 (11:18 +0000)
Original commit message from CVS:
Patch by: Dan Williams <dcbw at redhat dot com>
* gst/playback/gstplaybasebin.c:
(gst_play_base_bin_get_streaminfo_value_array):
Don't return NULL when querying the stream info value array but instead
return an empty array. Fixes #459204.

ChangeLog
gst/playback/gstplaybasebin.c

index 268e2e8..87600ea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-07-23  Wim Taymans  <wim.taymans@gmail.com>
+
+       Patch by: Dan Williams <dcbw at redhat dot com>
+
+       * gst/playback/gstplaybasebin.c:
+       (gst_play_base_bin_get_streaminfo_value_array):
+       Don't return NULL when querying the stream info value array but instead
+       return an empty array. Fixes #459204.
+
 2007-07-23  Tim-Philipp Müller  <tim at centricular dot net>
 
        * gst/playback/gsturidecodebin.c:
index d7390df..574eee9 100644 (file)
@@ -2650,6 +2650,8 @@ gst_play_base_bin_get_streaminfo_value_array (GstPlayBaseBin * play_base_bin)
   group = get_active_group (play_base_bin);
   if (group) {
     array = g_value_array_copy (group->streaminfo_value_array);
+  } else {
+    array = g_value_array_new (0);
   }
   GROUP_UNLOCK (play_base_bin);