[xiph-commits] r14672 - branches/dir.xiph.org/cgi-bin

balbinus at svn.xiph.org balbinus at svn.xiph.org
Tue Apr 8 01:28:04 PDT 2008


Author: balbinus
Date: 2008-04-08 01:28:03 -0700 (Tue, 08 Apr 2008)
New Revision: 14672

Modified:
   branches/dir.xiph.org/cgi-bin/yp.php
Log:
Test on the media type and the bitrate too.

Modified: branches/dir.xiph.org/cgi-bin/yp.php
===================================================================
--- branches/dir.xiph.org/cgi-bin/yp.php	2008-04-08 04:21:38 UTC (rev 14671)
+++ branches/dir.xiph.org/cgi-bin/yp.php	2008-04-08 08:28:03 UTC (rev 14672)
@@ -109,8 +109,8 @@
 		}
 		
 		// Look for the mountpoint, bis (different listen URL, same stream name)
-		$query = 'SELECT `id` FROM `mountpoint` WHERE `stream_name` = "%s";';
-		$query = sprintf($query, mysql_real_escape_string($stream_name));
+		$query = 'SELECT `id` FROM `mountpoint` WHERE `stream_name` = "%s" AND `media_type_id` = %d AND `bitrate` = %d;';
+		$query = sprintf($query, mysql_real_escape_string($stream_name), content_type_lookup($media_type), mysql_real_escape_string($bitrate));
 		try
 		{
 			// The mountpoint exists, only a different server.



More information about the commits mailing list