fix feed_filename test, field is char [1024], patch by Erik Hovland, erik at hovland...
authorErik Hovland <erik@hovland.org>
Sun, 22 Jun 2008 00:30:48 +0000 (00:30 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 22 Jun 2008 00:30:48 +0000 (00:30 +0000)
Originally committed as revision 13857 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffserver.c

index 4f80490..234820d 100644 (file)
@@ -1614,7 +1614,7 @@ static void compute_status(HTTPContext *c)
     url_fprintf(pb, "\r\n");
 
     url_fprintf(pb, "<HEAD><TITLE>%s Status</TITLE>\n", program_name);
-    if (c->stream->feed_filename)
+    if (c->stream->feed_filename[0])
         url_fprintf(pb, "<link rel=\"shortcut icon\" href=\"%s\">\n", c->stream->feed_filename);
     url_fprintf(pb, "</HEAD>\n<BODY>");
     url_fprintf(pb, "<H1>%s Status</H1>\n", program_name);