[MPlayer-cvslog] r23661 - trunk/stream/realrtsp/real.c

rtogni subversion at mplayerhq.hu
Sun Jun 24 20:46:42 CEST 2007


Author: rtogni
Date: Sun Jun 24 20:46:41 2007
New Revision: 23661

Log:
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


Modified:
   trunk/stream/realrtsp/real.c

Modified: trunk/stream/realrtsp/real.c
==============================================================================
--- trunk/stream/realrtsp/real.c	(original)
+++ trunk/stream/realrtsp/real.c	Sun Jun 24 20:46:41 2007
@@ -404,6 +404,11 @@ int real_get_rdt_chunk(rtsp_t *rtsp_sess
 
 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) {



More information about the MPlayer-cvslog mailing list