From owner-freebsd-ports@FreeBSD.ORG Fri Mar 25 20:07:53 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CC701065672 for ; Fri, 25 Mar 2011 20:07:53 +0000 (UTC) (envelope-from piokud84@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id F32638FC17 for ; Fri, 25 Mar 2011 20:07:52 +0000 (UTC) Received: by vws18 with SMTP id 18so1273255vws.13 for ; Fri, 25 Mar 2011 13:07:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=ZqaixbPEYEMI+qgoHP2ZQO/todae0SbNwFr6c4SCI5Q=; b=fz7jY4Rg2COi9Zy+uSeZDFeqaaHMzf6n+rManvGi8l6ijxFyyVNR6R+Zh5lyExN3TH JxHJuyYgp0KCh5P5OK5i5ggKMURypzihn8/SFDQvG+hSXko6t2Mo3VQLJI7MLZ1jkYEt eEAolBmquI6FuDMJSmnfBFe/hfgMpS3IYgOvU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=wYixZTpot8bh9i8ruxC+J8jyzqAxPRRDh5d3Ldq1hfXwMp3h2K+R8hS579/fW+4/bm wizd4703O5hmOWCcrykoTVdWO98VbToIsci5/ENWADHRiOZTJvkVqNgNrY5mWS3GZsVd QVMejOJveLMpP31AZv98zSLCIBPnitJE9z/TM= MIME-Version: 1.0 Received: by 10.52.176.72 with SMTP id cg8mr1696126vdc.124.1301083670665; Fri, 25 Mar 2011 13:07:50 -0700 (PDT) Received: by 10.52.161.194 with HTTP; Fri, 25 Mar 2011 13:07:50 -0700 (PDT) In-Reply-To: <86aagjav7t.fsf@gmail.com> References: <86aagjav7t.fsf@gmail.com> Date: Fri, 25 Mar 2011 21:07:50 +0100 Message-ID: From: Piotr Kudzin To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: Mplayer2 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2011 20:07:53 -0000 Thanks for patches Pan Tsu, i'll try them out as soon i'll put FBSD on this box. PS. Are You working on official prot of Mplayer2 for FBSD ports tree ?? 2011/3/25 Pan Tsu : > Piotr Kudzin writes: > >> Hi guys >> >> Is someone going to port Mplayer2 (http://www.mplayer2.org/ >> http://www.mplayer2.org/comparison.html) to FreeBSD? > > FYI, OSS4 support there doesn't work with our OSS. > > =A0http://git.mplayer2.org/mplayer2/commit/?id=3D91d0d3a > =A0http://people.freebsd.org/~ariff/ports/multimedia_mplayer/patch-xzz (d= ifferent approach) > > Apply below diff if you can't change volume without -softvol. > > %% > diff --git a/libao2/ao_oss.c b/libao2/ao_oss.c > index 82a0dd5..198d9bf 100644 > --- a/libao2/ao_oss.c > +++ b/libao2/ao_oss.c > @@ -153,7 +153,7 @@ static int prepause_space; > =A0static const char *oss_mixer_device =3D PATH_DEV_MIXER; > =A0static int oss_mixer_channel =3D SOUND_MIXER_PCM; > > -#ifdef SNDCTL_DSP_GETPLAYVOL > +#if 0 > =A0static int volume_oss4(ao_control_vol_t *vol, int cmd) { > =A0 =A0 int v; > > @@ -201,7 +201,7 @@ static int control(int cmd,void *arg){ > =A0 =A0 =A0 =A0 =A0 =A0ao_control_vol_t *vol =3D (ao_control_vol_t *)arg; > =A0 =A0 =A0 =A0 =A0 =A0int fd, v, devs; > > -#ifdef SNDCTL_DSP_GETPLAYVOL > +#if 0 > =A0 =A0 =A0 =A0 // Try OSS4 first > =A0 =A0 =A0 =A0 if (volume_oss4(vol, cmd) =3D=3D CONTROL_OK) > =A0 =A0 =A0 =A0 =A0 =A0 return CONTROL_OK; > %% >