Revision 8adf9bb2 ffplay.c

View differences:

ffplay.c
126 126
};
127 127

  
128 128
typedef struct VideoState {
129
    SDL_Thread *parse_tid;
129
    SDL_Thread *read_tid;
130 130
    SDL_Thread *video_tid;
131 131
    SDL_Thread *refresh_tid;
132 132
    AVInputFormat *iformat;
......
1270 1270
    int i;
1271 1271
    /* XXX: use a special url_shutdown call to abort parse cleanly */
1272 1272
    is->abort_request = 1;
1273
    SDL_WaitThread(is->parse_tid, NULL);
1273
    SDL_WaitThread(is->read_tid, NULL);
1274 1274
    SDL_WaitThread(is->refresh_tid, NULL);
1275 1275

  
1276 1276
    /* free all pictures */
......
2366 2366
}
2367 2367

  
2368 2368
/* this thread gets the stream from the disk or the network */
2369
static int decode_thread(void *arg)
2369
static int read_thread(void *arg)
2370 2370
{
2371 2371
    VideoState *is = arg;
2372 2372
    AVFormatContext *ic;
......
2637 2637
    is->subpq_cond = SDL_CreateCond();
2638 2638

  
2639 2639
    is->av_sync_type = av_sync_type;
2640
    is->parse_tid = SDL_CreateThread(decode_thread, is);
2641
    if (!is->parse_tid) {
2640
    is->read_tid = SDL_CreateThread(read_thread, is);
2641
    if (!is->read_tid) {
2642 2642
        av_free(is);
2643 2643
        return NULL;
2644 2644
    }

Also available in: Unified diff