diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-01-12 23:53:18 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-01-12 23:55:20 +0000 |
commit | 4be0225870ffcf290cf5109f96a01977dba2c6e6 (patch) | |
tree | bfce8d4f45df818ff00a78c14766b7fb78a73d73 /ext/libmms | |
parent | ba06eddb40c23d554f656af5abe037864336880a (diff) | |
download | gstreamer-plugins-bad-4be0225870ffcf290cf5109f96a01977dba2c6e6.tar.gz |
mmssrc: post error message in addition to redirect when connect fails
When we can't connect to the server, we should still post a proper
error message on the bus, so that applications that don't handle the
redirect messsage get a proper error message (and a hint to look for
the redirect).
Fixes #606636.
Diffstat (limited to 'ext/libmms')
-rw-r--r-- | ext/libmms/gstmms.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/libmms/gstmms.c b/ext/libmms/gstmms.c index 97e34646f..20abafb47 100644 --- a/ext/libmms/gstmms.c +++ b/ext/libmms/gstmms.c @@ -452,6 +452,14 @@ gst_mms_start (GstBaseSrc * bsrc) gst_message_new_element (GST_OBJECT_CAST (mms), gst_structure_new ("redirect", "new-location", G_TYPE_STRING, url, NULL))); + + /* post an error message as well, so that applications that don't handle + * redirect messages get to see a proper error message */ + GST_ELEMENT_ERROR (mms, RESOURCE, OPEN_READ, + ("Could not connect to streaming server."), + ("A redirect message was posted on the bus and should have been " + "handled by the application.")); + return FALSE; } |