diff options
author | Reinhard Nißl <rnissl@gmx.de> | 2007-04-12 23:53:53 +0200 |
---|---|---|
committer | Reinhard Nißl <rnissl@gmx.de> | 2007-04-12 23:53:53 +0200 |
commit | d49cccb9b200afb0505723e9cbab6d614a5e30c8 (patch) | |
tree | 19952f94aeab28d921e432d8cd69826646b1a3aa /src/xine-engine/xine_internal.h | |
parent | 60871f034457fb6727df480c311b76e81a4ca6fb (diff) | |
parent | bd88a5c94af0af727680606a22ec9414fba68366 (diff) | |
download | xine-lib-d49cccb9b200afb0505723e9cbab6d614a5e30c8.tar.gz xine-lib-d49cccb9b200afb0505723e9cbab6d614a5e30c8.tar.bz2 |
Merge some code for still frame detection.
Diffstat (limited to 'src/xine-engine/xine_internal.h')
-rw-r--r-- | src/xine-engine/xine_internal.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/xine-engine/xine_internal.h b/src/xine-engine/xine_internal.h index 30899a4b3..c88bcc904 100644 --- a/src/xine-engine/xine_internal.h +++ b/src/xine-engine/xine_internal.h @@ -159,6 +159,15 @@ struct xine_ticket_s { * revocation or by other threads acquiring tickets */ void (*revoke)(xine_ticket_t *self, int atomic); + /* behaves like acquire() but doesn't block the calling thread; when + * the thread would have been blocked, 0 is returned otherwise 1 + * this function acquires a ticket even if ticket revocation is active */ + int (*acquire_nonblocking)(xine_ticket_t *self, int irrevocable); + + /* behaves like release() but doesn't block the calling thread; should + * be used in combination with acquire_nonblocking() */ + void (*release_nonblocking)(xine_ticket_t *self, int irrevocable); + void (*dispose)(xine_ticket_t *self); pthread_mutex_t lock; @@ -357,6 +366,8 @@ struct xine_stream_s { * private function prototypes: */ +int _x_query_buffer_usage(xine_stream_t *stream, int *num_video_buffers, int *num_audio_buffers, int *num_video_frames, int *num_audio_frames) XINE_PROTECTED; + void _x_handle_stream_end (xine_stream_t *stream, int non_user) XINE_PROTECTED; /* report message to UI. usually these are async errors */ |