From: <tho...@fr...> - 2005-08-15 18:54:48
|
CVS Root: /cvs/gstreamer Module: gstreamer Changes by: thomasvs Date: Mon Aug 15 2005 11:15:50 PDT Log message: don't convert NULL structures to strings Modified files: . : ChangeLog gst : gstbus.c tools : gst-launch.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/ChangeLog.diff?r1=1.1351&r2=1.1352 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstbus.c.diff?r1=1.16&r2=1.17 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/tools/gst-launch.c.diff?r1=1.79&r2=1.80 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gstreamer/ChangeLog,v retrieving revision 1.1351 retrieving revision 1.1352 diff -u -d -r1.1351 -r1.1352 --- ChangeLog 15 Aug 2005 16:57:33 -0000 1.1351 +++ ChangeLog 15 Aug 2005 18:15:36 -0000 1.1352 @@ -1,7 +1,12 @@ +2005-08-15 Thomas Vander Stichele <thomas at apestaart dot org> + + * tools/gst-launch.c: (event_loop): + don't convert NULL structures to strings 2005-08-15 Stefan Kost <en...@us...> * docs/gst/gstreamer-sections.txt: - made some defines private + made some defines private * docs/gst/tmpl/gstconfig.sgml: * docs/gst/tmpl/gstqueue.sgml: * docs/gst/tmpl/gsttaglist.sgml: @@ -17,9 +22,9 @@ * gst/gstpad.c: (gst_pad_class_init): * gst/gstqueue.c: (gst_queue_class_init): * gst/gstxml.c: (gst_xml_class_init): - documented all undocumented signal inline + documented all undocumented signal inline * libs/gst/controller/gst-controller.h: - added padding + added padding 2005-08-15 Ronald S. Bultje <rb...@ro...> Index: gstbus.c RCS file: /cvs/gstreamer/gstreamer/gst/gstbus.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- gstbus.c 29 Jul 2005 15:34:52 -0000 1.16 +++ gstbus.c 15 Aug 2005 18:15:38 -0000 1.17 @@ -545,7 +545,7 @@ id = g_source_attach (source, NULL); g_source_unref (source); - GST_DEBUG_OBJECT (bus, "New source %p\n", source); + GST_DEBUG_OBJECT (bus, "New source %p", source); return id; } Index: gst-launch.c RCS file: /cvs/gstreamer/gstreamer/tools/gst-launch.c,v retrieving revision 1.79 retrieving revision 1.80 diff -u -d -r1.79 -r1.80 --- gst-launch.c 19 Jul 2005 14:52:59 -0000 1.79 +++ gst-launch.c 15 Aug 2005 18:15:38 -0000 1.80 @@ -376,14 +376,18 @@ g_return_val_if_fail (message != NULL, TRUE); if (messages) { - gchar *sstr; const GstStructure *s; s = gst_message_get_structure (message); - sstr = gst_structure_to_string (s); - g_print (_("Got Message from element \"%s\": %s\n"), - GST_STR_NULL (GST_ELEMENT_NAME (GST_MESSAGE_SRC (message))), sstr); - g_free (sstr); + g_print (_("Got Message from element \"%s\"\n"), + GST_STR_NULL (GST_ELEMENT_NAME (GST_MESSAGE_SRC (message)))); + if (s) { + gchar *sstr; + sstr = gst_structure_to_string (s); + g_print ("%s\n", sstr); + g_free (sstr); + } } switch (revent) { |