projects
/
vuplus_dvbapp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added media file format. (wmv,wma,asf)
[vuplus_dvbapp]
/
lib
/
service
/
service.cpp
diff --git
a/lib/service/service.cpp
b/lib/service/service.cpp
old mode 100644
(file)
new mode 100755
(executable)
index
11cf95b
..
77bfda9
--- a/
lib/service/service.cpp
+++ b/
lib/service/service.cpp
@@
-65,11
+65,18
@@
eServiceReference::eServiceReference(const std::string &string)
if ( sscanf(c, "%d:%d:%x:%x:%x:%x:%n", &type, &flags, &data[0], &data[1], &data[2], &data[3], &pathl) < 2 )
type = idInvalid;
}
if ( sscanf(c, "%d:%d:%x:%x:%x:%x:%n", &type, &flags, &data[0], &data[1], &data[2], &data[3], &pathl) < 2 )
type = idInvalid;
}
-
if (pathl)
{
const char *pathstr = c+pathl;
if (pathl)
{
const char *pathstr = c+pathl;
- const char *namestr = strchr(pathstr, ':');
+ const char *namestr = NULL;
+ int found = strlen(pathstr)-1;
+ for(;found >= 0;found--)
+ {
+ if(pathstr[found] == ':')
+ break;
+ }
+ if (found != -1)
+ namestr = pathstr + found;
if (namestr)
{
if (!strncmp(namestr, "://", 3)) // The path is a url (e.g. "http://...")
if (namestr)
{
if (!strncmp(namestr, "://", 3)) // The path is a url (e.g. "http://...")