Revision c2ca851b
ffserver.c | ||
---|---|---|
3199 | 3199 |
char path1[1024]; |
3200 | 3200 |
const char *path; |
3201 | 3201 |
char buf[1024]; |
3202 |
int s; |
|
3202 |
int s, len;
|
|
3203 | 3203 |
|
3204 | 3204 |
rtp_c = find_rtp_session(session_id); |
3205 | 3205 |
if (!rtp_c) |
... | ... | |
3219 | 3219 |
return rtp_c; |
3220 | 3220 |
} |
3221 | 3221 |
} |
3222 |
len = strlen(path); |
|
3223 |
if (len > 0 && path[len - 1] == '/' && |
|
3224 |
!strncmp(path, rtp_c->stream->filename, len - 1)) |
|
3225 |
return rtp_c; |
|
3222 | 3226 |
return NULL; |
3223 | 3227 |
} |
3224 | 3228 |
|
Also available in: Unified diff