range: don't overwrite unit field

This commit is contained in:
Wim Taymans 2012-11-21 15:22:13 +01:00
parent 0bf50cd3d8
commit f1669d7d9c

View file

@ -237,8 +237,6 @@ parse_smpte_range (const gchar * str, GstRTSPTimeRange * range)
GstRTSPResult res;
gchar *p;
range->unit = GST_RTSP_RANGE_SMPTE;
/* find '-' separator, can't have a single - */
p = strstr (str, "-");
if (p == NULL || p == str)