From geoff@cangeordie.com  Mon Apr  6 17:25:10 2009
Return-Path: <geoff@cangeordie.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6E5C810656E4;
	Mon,  6 Apr 2009 17:25:10 +0000 (UTC)
	(envelope-from geoff@cangeordie.com)
Received: from defout.telus.net (defout.telus.net [204.209.205.55])
	by mx1.freebsd.org (Postfix) with ESMTP id 1486C8FC1A;
	Mon,  6 Apr 2009 17:25:08 +0000 (UTC)
	(envelope-from geoff@cangeordie.com)
Received: from priv-edmwaa07.telusplanet.net ([204.209.205.55])
          by priv-edmwes26.telusplanet.net
          (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP
          id <20090406172508.DDRY29157.priv-edmwes26.telusplanet.net@priv-edmwaa07.telusplanet.net>;
          Mon, 6 Apr 2009 11:25:08 -0600
Received: from uzyod.ca (unknown [205.250.254.92])
	by priv-edmwaa07.telusplanet.net (BorderWare Security Platform) with ESMTP id 5E4B1717380D20B6;
	Mon,  6 Apr 2009 11:25:07 -0600 (MDT)
Received: (from root@localhost)
	by uzyod.ca (8.14.3/8.14.3/Submit) id n36HOgfv001374
	for baileygeoff@telus.net; Mon, 6 Apr 2009 10:24:42 -0700 (PDT)
	(envelope-from geoff)
Message-Id: <200904061724.n36HOgfv001374@uzyod.ca>
Date: Mon, 6 Apr 2009 10:24:42 -0700 (PDT)
From: baileygeoff@telus.net
Reply-To: baileygeoff@telus.net
To: FreeBSD-gnats-submit@freebsd.org
Cc: oliver@freebsd.org
Subject: [patch] multimedia/audacious-1.5.1: file dialog opens when a filename is passed on the command line.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         133431
>Category:       ports
>Synopsis:       [patch] multimedia/audacious-1.5.1: file dialog opens when a filename is passed on the command line.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 06 17:30:01 UTC 2009
>Closed-Date:    Mon Apr 06 18:25:24 UTC 2009
>Last-Modified:  Mon Apr 06 18:25:24 UTC 2009
>Originator:     Geoff Bailey <baileygeoff@telus.net>
>Release:        FreeBSD 7.1-RELEASE i386
>Organization:
<>
>Environment:
multimedia/audacious-1.5.1 with multimedia/audacious-plugins-1.5.1
System: FreeBSD uzyod 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386

>Description:
When a .m3u filename is given on the command line (or when one clicks on a
.m3u url link in a browser and the browser passes the url as an argument)
audacious does not use the filename but instead opens a file dialog
to allow the user to browse for a file.

Inside the file 'src/audacious/main.c', an attempt is made to store the 
given filename on the playlist queue before the queue has been initialized.

>How-To-Repeat:
 1. pass a .m3u file as an argument on the command line:
 e.g. audacious genurl.m3u

 2. click on a .m3u link in a browser
 e.g.
  browse to 'http://www.kpfa.org/home'
  and click on 'KPFA 94.1 FM'
 
>Fix:
In the file 'src/audacious/main.c', if the call to 'handle_cmd_line_options()'
(which tries to store the filename on the playlist queue) is  made after the 
call to 'playlist_system_init()', instead of before it, then the given filename
is properly added to the queue and the player starts to stream the media, 
as expected.

I know that this is an audacious problem but I thought that you might want
to make a temporary patch  until the audacious developers fix it.

I have attached 'patch-src_audacious_main.c' which makes the simple change
described above.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: oliver 
State-Changed-When: Mon Apr 6 18:25:07 UTC 2009 
State-Changed-Why:  
duplicate of 133430 

http://www.freebsd.org/cgi/query-pr.cgi?pr=133431 
>Unformatted:
