[vlc-devel] commit: Fix build. (Pierre d'Herbemont )
git version control
git at videolan.org
Tue Jun 9 07:50:21 CEST 2009
vlc | branch: 1.0-bugfix | Pierre d'Herbemont <pdherbemont at free.fr> | Mon Jun 8 22:48:23 2009 -0700| [97021ec31daaa7a1e3a0382a4b8bcfc07b7d924b] | committer: Pierre d'Herbemont
Fix build.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=97021ec31daaa7a1e3a0382a4b8bcfc07b7d924b
---
src/control/media_list_path.h | 16 ++++++++--------
src/control/media_list_player.c | 2 +-
src/control/media_player.c | 4 +++-
src/control/media_player_internal.h | 5 +++++
src/control/playlist.c | 3 ++-
src/control/video.c | 1 +
6 files changed, 20 insertions(+), 11 deletions(-)
diff --git a/src/control/media_list_path.h b/src/control/media_list_path.h
index 14039ab..424488d 100644
--- a/src/control/media_list_path.h
+++ b/src/control/media_list_path.h
@@ -66,7 +66,7 @@ static inline libvlc_media_list_path_t libvlc_media_list_path_with_root_index( i
}
/**************************************************************************
- * path_deepness (Media List Player Internal)
+ * path_deepth (Media List Player Internal)
**************************************************************************/
static inline int libvlc_media_list_path_depth( const libvlc_media_list_path_t path )
{
@@ -80,10 +80,10 @@ static inline int libvlc_media_list_path_depth( const libvlc_media_list_path_t p
**************************************************************************/
static inline void libvlc_media_list_path_append( libvlc_media_list_path_t * p_path, int index )
{
- int old_deepness = libvlc_media_list_path_deepness( *p_path );
- *p_path = realloc( *p_path, sizeof(int)*(old_deepness+2));
- *p_path[old_deepness] = index;
- *p_path[old_deepness+1] = -1;
+ int old_deepth = libvlc_media_list_path_depth( *p_path );
+ *p_path = realloc( *p_path, sizeof(int)*(old_deepth+2));
+ *p_path[old_deepth] = index;
+ *p_path[old_deepth+1] = -1;
}
/**************************************************************************
@@ -106,9 +106,9 @@ static inline libvlc_media_list_path_t libvlc_media_list_path_copy_by_appending(
static inline libvlc_media_list_path_t libvlc_media_list_path_copy( const libvlc_media_list_path_t path )
{
libvlc_media_list_path_t ret;
- int deepness = libvlc_media_list_path_deepness( path );
- ret = malloc( sizeof(int)*(deepness+1) );
- memcpy( ret, path, sizeof(int)*(deepness+1) );
+ int depth = libvlc_media_list_path_depth( path );
+ ret = malloc( sizeof(int)*(depth+1) );
+ memcpy( ret, path, sizeof(int)*(depth+1) );
return ret;
}
diff --git a/src/control/media_list_player.c b/src/control/media_list_player.c
index 10ee0fe..ee9a8e0 100644
--- a/src/control/media_list_player.c
+++ b/src/control/media_list_player.c
@@ -86,7 +86,7 @@ get_next_path( libvlc_media_list_player_t * p_mlp )
p_mlp->p_mlist,
p_mlp->current_playing_item_path );
- int deepness = libvlc_media_list_path_deepness( p_mlp->current_playing_item_path );
+ int deepness = libvlc_media_list_path_depth( p_mlp->current_playing_item_path );
if( deepness < 1 || !p_parent_of_playing_item )
return NULL;
diff --git a/src/control/media_player.c b/src/control/media_player.c
index 820c679..b65643c 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -71,6 +71,8 @@ static inline libvlc_state_t vlc_to_libvlc_state( int vlc_state )
return vlc_to_libvlc_state_array[vlc_state];
}
+static void libvlc_media_player_destroy( libvlc_media_player_t *p_mi );
+
/*
* Release the associated input thread.
*
@@ -410,7 +412,7 @@ libvlc_media_player_t * libvlc_media_player_new_from_input_thread(
*
* Warning: No lock held here, but hey, this is internal. Caller must lock.
**************************************************************************/
-void libvlc_media_player_destroy( libvlc_media_player_t *p_mi )
+static void libvlc_media_player_destroy( libvlc_media_player_t *p_mi )
{
input_thread_t *p_input_thread;
libvlc_exception_t p_e;
diff --git a/src/control/media_player_internal.h b/src/control/media_player_internal.h
index 3eeda53..03678f6 100644
--- a/src/control/media_player_internal.h
+++ b/src/control/media_player_internal.h
@@ -48,11 +48,16 @@ struct libvlc_media_player_t
uint32_t xid;
uint32_t agl;
} drawable;
+ bool b_own_its_input_thread;
};
/* Media player - audio, video */
input_thread_t *libvlc_get_input_thread(libvlc_media_player_t *, libvlc_exception_t * );
+libvlc_media_player_t * libvlc_media_player_new_from_input_thread(
+ struct libvlc_instance_t *p_libvlc_instance,
+ input_thread_t *p_input,
+ libvlc_exception_t *p_e );
libvlc_track_description_t * libvlc_get_track_description(
libvlc_media_player_t *p_mi,
diff --git a/src/control/playlist.c b/src/control/playlist.c
index 76acbd8..fa5652f 100644
--- a/src/control/playlist.c
+++ b/src/control/playlist.c
@@ -22,9 +22,10 @@
*****************************************************************************/
#include "libvlc_internal.h"
+#include "media_player_internal.h"
#include "libvlc.h"
-#include <vlc/libvlc.h>
+#include <vlc/vlc.h>
#include <vlc_playlist.h>
#include <assert.h>
diff --git a/src/control/video.c b/src/control/video.c
index df32b73..82ce94b 100644
--- a/src/control/video.c
+++ b/src/control/video.c
@@ -34,6 +34,7 @@
#include <vlc_vout.h>
#include "media_player_internal.h"
+#include "libvlc_internal.h"
/*
* Remember to release the returned vout_thread_t.
More information about the vlc-devel
mailing list