freebsd-ports/multimedia/helixplayer/files/patch-player_app_gtk_embeddedapp.cpp
Shaun Amott 18eec0ea7e Add some substantial improvements to the helixplayer port. I have
decided to leave this marked IGNORE/BROKEN for the moment until I can
figure out if/when/why the build is failing; but also, I have a few more
changes to make before I bring it back to life.

This is courtesy of Mikhail Teterin, with some input from Thierry
Thomas.

 1) Allow port to build and execute on amd64.

 2) Do not build the bundled png, jpg, zlib, bzip2, getopt, md5: do not
    even extract them -- use the ports and the OS versions (OpenSSL in
    case of md5 -- it may be assembler-optimized on some arches even)

 3) Do not build the giant install.bz2, which the do-install target
    would then untar in ${PREFIX}/HelixPlayer -- leave that whole part
    alone and simply copy the stuff under PREFIX.

 4) Check for build failures (parsing the end of build.out) and fail in
    post-built, of any modules failed.

 5) Fix JPEG image display.
2006-08-03 02:33:33 +00:00

38 lines
1.1 KiB
C++

--- player/app/gtk/embeddedapp.cpp Tue Dec 7 16:17:19 2004
+++ player/app/gtk/embeddedapp.cpp Sun Jul 2 02:55:03 2006
@@ -80,4 +80,7 @@
#include <glib.h>
+#if GLIB_CHECK_VERSION (2, 4, 0)
+# define g_value_set_string_take_ownership g_value_take_string
+#endif
/* This file contains functions with several different prefixes.
@@ -276,5 +279,5 @@
typedef struct
{
- guint stream_id;
+ uintptr_t stream_id;
HXDataStream* stream;
gchar* url;
@@ -3108,5 +3111,5 @@
HXEmbeddedWindow*
-hxembedded_window_get_from_id(guint window_id)
+hxembedded_window_get_from_id(uintptr_t window_id)
{
GList* consoles_iter;
@@ -3165,5 +3168,5 @@
void
hxembedded_window_new_stream(HXEmbeddedWindow* window,
- guint stream_id,
+ uintptr_t stream_id,
const gchar* url,
const gchar* mime_type,
@@ -3296,5 +3299,5 @@
void
hxembedded_window_stream_done(HXEmbeddedWindow* window,
- guint stream_id)
+ uintptr_t stream_id)
{
GList* iter;