mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-04-05 10:04:58 +00:00
fixes
This commit is contained in:
@@ -384,8 +384,10 @@ error:
|
||||
|
||||
void audio_join(struct state_audio *s) {
|
||||
if(s) {
|
||||
pthread_join(s->audio_receiver_thread_id, NULL);
|
||||
pthread_join(s->audio_sender_thread_id, NULL);
|
||||
if(s->audio_receiver_thread_id)
|
||||
pthread_join(s->audio_receiver_thread_id, NULL);
|
||||
if(s->audio_sender_thread_id)
|
||||
pthread_join(s->audio_sender_thread_id, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ static display_table_t display_device_table[] = {
|
||||
display_gl_init,
|
||||
display_gl_run,
|
||||
display_gl_done,
|
||||
NULL,
|
||||
display_gl_finish,
|
||||
display_gl_getf,
|
||||
display_gl_putf,
|
||||
display_gl_reconfigure,
|
||||
|
||||
@@ -987,6 +987,15 @@ void display_gl_done(void *state)
|
||||
free(s);
|
||||
}
|
||||
|
||||
void display_gl_finish(void *state)
|
||||
{
|
||||
struct state_gl *s = (struct state_gl *) state;
|
||||
|
||||
assert(s->magic == MAGIC_GL);
|
||||
|
||||
s->processed = TRUE;
|
||||
}
|
||||
|
||||
struct video_frame * display_gl_getf(void *state)
|
||||
{
|
||||
struct state_gl *s = (struct state_gl *) state;
|
||||
|
||||
@@ -56,6 +56,7 @@ display_type_t *display_gl_probe(void);
|
||||
void *display_gl_init(char *fmt, unsigned int flags);
|
||||
void display_gl_run(void *state);
|
||||
void display_gl_done(void *state);
|
||||
void display_gl_finish(void *state);
|
||||
struct video_frame *display_gl_getf(void *state);
|
||||
int display_gl_putf(void *state, char *frame);
|
||||
int display_gl_reconfigure(void *state, struct video_desc desc);
|
||||
|
||||
@@ -56,7 +56,7 @@ void display_sage_run(void *state);
|
||||
void display_sage_done(void *state);
|
||||
struct video_frame *display_sage_getf(void *state);
|
||||
int display_sage_putf(void *state, char *frame);
|
||||
void display_sage_reconfigure(void *state, struct video_desc desc);
|
||||
int display_sage_reconfigure(void *state, struct video_desc desc);
|
||||
int display_sage_get_property(void *state, int property, void *val, size_t *len);
|
||||
|
||||
int display_sage_handle_events(void);
|
||||
|
||||
Reference in New Issue
Block a user