Re: [vdr] compile error webvideo-0.0.3

2008-08-20 Thread Michael Brückner
Am Mittwoch 20 August 2008 schrieb Halim Sahin:
 /usr/include/libmms/mmsx.h:58: error: expected ‘,’ or ‘...’ before ‘this’

It is a bug in the libmms-dev package in Debian. See:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493735

With the attached diff for libmms-dev in the bug report the plugin compiles.

Regards
Michi

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] compile error webvideo-0.0.3

2008-08-20 Thread Antti Ajanki

Halim Sahin wrote:

Hi,
I can't build the plugin.


menu.c: In member function ‘int cNavigationMenu::GoToURL(const char*, 
eLinkType, const char*)’:
menu.c:497: warning: deprecated conversion from string constant to ‘char*’
In file included from download.c:18:
/usr/include/libmms/mmsx.h:58: error: expected ‘,’ or ‘...’ before ‘this’
/usr/include/libmms/mmsx.h:60: error: expected ‘,’ or ‘...’ before ‘this’
/usr/include/libmms/mmsx.h:62: error: expected ‘,’ or ‘...’ before ‘this’


This is a bug in libmms headers. You can apply the attached patch to 
/usr/include/libmms/mmsx.h. Or, if you don't want to edit system files, 
replace every occurrence of the string mmsx with mms in download.c 
in the plugin sources. In the latter case the plugin loses the ability 
to automatically try mmsh protocol if mms fails.


--
Antti Ajanki

Index: libmms-0.4/src/mmsx.h
===
--- libmms-0.4.orig/src/mmsx.h	2008-08-04 11:13:49.0 +0300
+++ libmms-0.4/src/mmsx.h	2008-08-04 11:14:00.0 +0300
@@ -55,11 +55,11 @@
 
 mms_off_t mmsx_get_current_pos (mmsx_t *instance);
 
-uint32_t  mmsx_get_asf_header_len (mmsx_t *this);
+uint32_t  mmsx_get_asf_header_len (mmsx_t *instance);
 
-uint64_t  mmsx_get_asf_packet_len (mmsx_t *this);
+uint64_t  mmsx_get_asf_packet_len (mmsx_t *instance);
 
-int   mmsx_get_seekable (mmsx_t *this);
+int   mmsx_get_seekable (mmsx_t *instance);
 
 #ifdef __cplusplus
 }
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr