# HG changeset patch # User rtogni # Date 1182710801 0 # Node ID 1c5ab508b0e6cb8374e3058fe0888e810eddb092 # Parent 4eed49de214f48b05d9ce86641bda5439b49b3fb start= and end= parameters on realrtspurls may be optionally quoted with ", skip the quoting if it's there. Fixes rtsp://rmv8.bbc.net.uk/bbc7/2300_tue.ra?start="30:00" from bugzilla #850 diff -r 4eed49de214f -r 1c5ab508b0e6 stream/realrtsp/real.c --- a/stream/realrtsp/real.c Sun Jun 24 17:39:54 2007 +0000 +++ b/stream/realrtsp/real.c Sun Jun 24 18:46:41 2007 +0000 @@ -404,6 +404,11 @@ static int convert_timestamp(char *str, int *sec, int *msec) { int hh, mm, ss, ms = 0; + + // Timestamp may be optionally quoted with ", skip it + // Since the url is escaped when we get here, we skip the string "%22" + if (!strncmp(str, "%22", 3)) + str += 3; if (sscanf(str, "%d:%d:%d.%d", &hh, &mm, &ss, &ms) < 3) { hh = 0; if (sscanf(str, "%d:%d.%d", &mm, &ss, &ms) < 2) {