Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jan 2014 10:40:01 GMT
From:      =?ISO-8859-1?Q?Ferenc_G=E1l?= <gferenc88@gmail.com>
To:        freebsd-multimedia@FreeBSD.org
Subject:   Re: ports/185848: multimedia/vlc failed to compile with the new freerdp.
Message-ID:  <201401191040.s0JAe1lD042846@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/185848; it has been noted by GNATS.

From: =?ISO-8859-1?Q?Ferenc_G=E1l?= <gferenc88@gmail.com>
To: bug-followup@FreeBSD.org, gferenc88@gmail.com
Cc:  
Subject: Re: ports/185848: multimedia/vlc failed to compile with the new freerdp.
Date: Sun, 19 Jan 2014 11:37:09 +0100

 --047d7b5d86b57fc10c04f0505bfa
 Content-Type: text/plain; charset=ISO-8859-1
 
 Hi,
 
 i have made a patch for this problem:
 
 patch-modules-access-rdp.c:
 
 --- modules/access/rdp.c.orig
 +++ modules/access/rdp.c
 @@ -198,17 +198,17 @@
      demux_sys_t *p_sys = p_vlccontext->p_demux->p_sys;
 
      /* Configure connexion */
 -    p_instance->settings->sw_gdi = true; /* render in buffer */
 -    p_instance->settings->fullscreen = true;
 -    p_instance->settings->hostname = strdup( p_sys->psz_hostname );
 -    p_instance->settings->username =
 +    p_instance->settings->SoftwareGdi = true; /* render in buffer */
 +    p_instance->settings->Fullscreen = true;
 +    p_instance->settings->ServerHostname = strdup( p_sys->psz_hostname );
 +    p_instance->settings->Username =
              var_InheritString( p_vlccontext->p_demux, CFG_PREFIX "user" );
 -    p_instance->settings->password =
 +    p_instance->settings->Password =
              var_InheritString( p_vlccontext->p_demux, CFG_PREFIX
 "password" );
 -    p_instance->settings->port = p_sys->i_port;
 -    p_instance->settings->encryption =
 +    p_instance->settings->ServerPort = p_sys->i_port;
 +    p_instance->settings->EncryptionMethods =
              var_InheritBool( p_vlccontext->p_demux, CFG_PREFIX "encrypt" );
 -
 +
      return true;
  }
 
 @@ -217,9 +217,9 @@
      vlcrdp_context_t * p_vlccontext = (vlcrdp_context_t *)
 p_instance->context;
 
      msg_Dbg( p_vlccontext->p_demux, "connected to desktop %dx%d (%d bpp)",
 -             p_instance->settings->width,
 -             p_instance->settings->height,
 -             p_instance->settings->color_depth );
 +             p_instance->settings->DesktopWidth,
 +             p_instance->settings->DesktopHeight,
 +             p_instance->settings->ColorDepth );
 
      p_instance->update->DesktopResize = desktopResizeHandler;
      p_instance->update->BeginPaint = beginPaintHandler;
 @@ -415,7 +415,7 @@
      p_sys->p_instance->Authenticate = authenticateHandler;
 
      /* Set up context handlers and let it be allocated */
 -    p_sys->p_instance->context_size = sizeof( vlcrdp_context_t );
 +    p_sys->p_instance->ContextSize = sizeof( vlcrdp_context_t );
      freerdp_context_new( p_sys->p_instance );
 
      vlcrdp_context_t * p_vlccontext = (vlcrdp_context_t *)
 p_sys->p_instance->context;
 
 --047d7b5d86b57fc10c04f0505bfa
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 <div dir=3D"ltr"><div>Hi,<br><br></div>i have made a patch for this problem=
 :<br><br>patch-modules-access-rdp.c:<br><br>--- modules/access/rdp.c.orig<b=
 r>+++ modules/access/rdp.c<br>@@ -198,17 +198,17 @@<br>=A0=A0=A0=A0 demux_s=
 ys_t *p_sys =3D p_vlccontext-&gt;p_demux-&gt;p_sys;<br>
 <br>=A0=A0=A0=A0 /* Configure connexion */<br>-=A0=A0=A0 p_instance-&gt;set=
 tings-&gt;sw_gdi =3D true; /* render in buffer */<br>-=A0=A0=A0 p_instance-=
 &gt;settings-&gt;fullscreen =3D true;<br>-=A0=A0=A0 p_instance-&gt;settings=
 -&gt;hostname =3D strdup( p_sys-&gt;psz_hostname );<br>
 -=A0=A0=A0 p_instance-&gt;settings-&gt;username =3D<br>+=A0=A0=A0 p_instanc=
 e-&gt;settings-&gt;SoftwareGdi =3D true; /* render in buffer */<br>+=A0=A0=
 =A0 p_instance-&gt;settings-&gt;Fullscreen =3D true;<br>+=A0=A0=A0 p_instan=
 ce-&gt;settings-&gt;ServerHostname =3D strdup( p_sys-&gt;psz_hostname );<br=
 >
 +=A0=A0=A0 p_instance-&gt;settings-&gt;Username =3D<br>=A0=A0=A0=A0=A0=A0=
 =A0=A0=A0=A0=A0=A0 var_InheritString( p_vlccontext-&gt;p_demux, CFG_PREFIX =
 &quot;user&quot; );<br>-=A0=A0=A0 p_instance-&gt;settings-&gt;password =3D<=
 br>+=A0=A0=A0 p_instance-&gt;settings-&gt;Password =3D<br>
 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 var_InheritString( p_vlccontext-&gt;p_=
 demux, CFG_PREFIX &quot;password&quot; );<br>-=A0=A0=A0 p_instance-&gt;sett=
 ings-&gt;port =3D p_sys-&gt;i_port;<br>-=A0=A0=A0 p_instance-&gt;settings-&=
 gt;encryption =3D<br>+=A0=A0=A0 p_instance-&gt;settings-&gt;ServerPort =3D =
 p_sys-&gt;i_port;<br>
 +=A0=A0=A0 p_instance-&gt;settings-&gt;EncryptionMethods =3D<br>=A0=A0=A0=
 =A0=A0=A0=A0=A0=A0=A0=A0=A0 var_InheritBool( p_vlccontext-&gt;p_demux, CFG_=
 PREFIX &quot;encrypt&quot; );<br>-<br>+<br>=A0=A0=A0=A0 return true;<br>=A0=
 }<br><br>@@ -217,9 +217,9 @@<br>=A0=A0=A0=A0 vlcrdp_context_t * p_vlccontex=
 t =3D (vlcrdp_context_t *) p_instance-&gt;context;<br>
 <br>=A0=A0=A0=A0 msg_Dbg( p_vlccontext-&gt;p_demux, &quot;connected to desk=
 top %dx%d (%d bpp)&quot;,<br>-=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 p_instan=
 ce-&gt;settings-&gt;width,<br>-=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 p_insta=
 nce-&gt;settings-&gt;height,<br>-=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 p_ins=
 tance-&gt;settings-&gt;color_depth );<br>
 +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 p_instance-&gt;settings-&gt;DesktopWi=
 dth,<br>+=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 p_instance-&gt;settings-&gt;D=
 esktopHeight,<br>+=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 p_instance-&gt;setti=
 ngs-&gt;ColorDepth );<br><br>=A0=A0=A0=A0 p_instance-&gt;update-&gt;Desktop=
 Resize =3D desktopResizeHandler;<br>
 =A0=A0=A0=A0 p_instance-&gt;update-&gt;BeginPaint =3D beginPaintHandler;<br=
 >@@ -415,7 +415,7 @@<br>=A0=A0=A0=A0 p_sys-&gt;p_instance-&gt;Authenticate =
 =3D authenticateHandler;<br><br>=A0=A0=A0=A0 /* Set up context handlers and=
  let it be allocated */<br>
 -=A0=A0=A0 p_sys-&gt;p_instance-&gt;context_size =3D sizeof( vlcrdp_context=
 _t );<br>+=A0=A0=A0 p_sys-&gt;p_instance-&gt;ContextSize =3D sizeof( vlcrdp=
 _context_t );<br>=A0=A0=A0=A0 freerdp_context_new( p_sys-&gt;p_instance );<=
 br><br>=A0=A0=A0=A0 vlcrdp_context_t * p_vlccontext =3D (vlcrdp_context_t *=
 ) p_sys-&gt;p_instance-&gt;context;<br>
 <br></div>
 
 --047d7b5d86b57fc10c04f0505bfa--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401191040.s0JAe1lD042846>