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 338715 - [shout2send] fix crash on error and tags received before connection is made
[shout2send] fix crash on error and tags received before connection is made
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.2
Other Linux
: Normal critical
: 0.10.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 338636 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-04-16 17:02 UTC by Philippe Valembois
Modified: 2006-04-17 19:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The patch (3.38 KB, patch)
2006-04-16 17:04 UTC, Philippe Valembois
committed Details | Review

Description Philippe Valembois 2006-04-16 17:02:50 UTC
This patch fixes the bug I reported #338636
And removes a bug which makes metadata not sent if the tag event is received before the connection
Comment 1 Philippe Valembois 2006-04-16 17:04:01 UTC
Created attachment 63648 [details] [review]
The patch
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2006-04-16 17:38:39 UTC
*** Bug 338636 has been marked as a duplicate of this bug. ***
Comment 3 Philippe Valembois 2006-04-16 17:54:00 UTC
A working pipeline would be
gst-launch audiotestsrc ! lame bitrate=128 ! shout2send ip=127.0.0.1 protocol=3 mount=test password=hackme
And a non working one which would lead to sigsegv is :
gst-launch audiotestsrc ! lame bitrate=128 ! shout2send ip=127.0.0.1 protocol=3 mount=test password=hackme1
Comment 4 Tim-Philipp Müller 2006-04-17 19:59:45 UTC
Should be fixed in CVS now, thanks for the patch.

2006-04-17  Tim-Philipp Müller  <tim at centricular dot net>

        Patch by: Philippe Valembois

        * ext/shout2/gstshout2.c: (gst_shout2send_init),
        (gst_shout2send_set_metadata), (gst_shout2send_event),
        (gst_shout2send_render), (gst_shout2send_change_state):
        * ext/shout2/gstshout2.h:
          Handle tags being received before the connection to
          the server is established properly (see #338636).

2006-04-17  Tim-Philipp Müller  <tim at centricular dot net>

        * ext/shout2/gstshout2.c: (gst_shout2send_render):
          Don't crash in case the connection to the server fails:
          don't set pointer to NULL by assigning FALSE; error out
          properly by using GST_ELEMENT_ERROR and returning
          GST_FLOW_ERROR (fixes #338636). Lastly, free connection
          before resetting the pointer.

FWIW, this element seriously needs a rewrite.