mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
gst/playback/gstplaybasebin.c: Don't post RESOURCE_NOT_FOUND error when we can't find a source element for a particul...
Original commit message from CVS: * gst/playback/gstplaybasebin.c: (setup_source): Don't post RESOURCE_NOT_FOUND error when we can't find a source element for a particular protocol, that's confusing for users. Instead, post a RESOURCE_FAILED error, so that our own error message is actually shown in totem etc. (#336303).
This commit is contained in:
parent
abecdb73b3
commit
ec53ce9691
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
|||
2006-03-28 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/playback/gstplaybasebin.c: (setup_source):
|
||||
Don't post RESOURCE_NOT_FOUND error when we can't find a source
|
||||
element for a particular protocol, that's confusing for users.
|
||||
Instead, post a RESOURCE_FAILED error, so that our own error
|
||||
message is actually shown in totem etc. (#336303).
|
||||
|
||||
2006-03-27 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com>
|
||||
|
|
|
@ -1363,7 +1363,7 @@ no_source:
|
|||
}
|
||||
prot = gst_uri_get_protocol (play_base_bin->uri);
|
||||
if (prot) {
|
||||
GST_ELEMENT_ERROR (play_base_bin, RESOURCE, NOT_FOUND,
|
||||
GST_ELEMENT_ERROR (play_base_bin, RESOURCE, FAILED,
|
||||
(_("No URI handler implemented for \"%s\"."), prot), (NULL));
|
||||
g_free (prot);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue