Subversion Repositories Kolibri OS

Rev

Rev 5603 | Rev 6117 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5603 Rev 6106
Line 49... Line 49...
49
 
49
 
Line 50... Line 50...
50
int64_t stream_duration;
50
int64_t stream_duration;
Line 51... Line 51...
51
 
51
 
52
int threads_running = DECODER_THREAD;
-
 
Line 53... Line 52...
53
mutex_t driver_lock;
52
int threads_running = DECODER_THREAD;
Line 54... Line 53...
54
 
53
 
55
extern double audio_base;
54
extern double audio_base;
Line 108... Line 107...
108
        movie_file[dot-file_name] = 0;
107
        movie_file[dot-file_name] = 0;
109
    }
108
    }
110
    else movie_file = file_name;
109
    else movie_file = file_name;
111
 
110
 
Line 112... Line -...
112
//    __asm__ __volatile__("int3");
-
 
113
 
-
 
114
    stream_duration = pFormatCtx->duration;
111
    stream_duration = pFormatCtx->duration;
Line 115... Line -...
115
 
-
 
116
    printf("duration %f\n", (double)stream_duration);
112
 
117
   // Find the first video stream
113
   // Find the first video stream
118
    videoStream=-1;
114
    videoStream=-1;
119
    audioStream=-1;
115
    audioStream=-1;
120
    for(i=0; i < pFormatCtx->nb_streams; i++)
116
    for(i=0; i < pFormatCtx->nb_streams; i++)
Line 170... Line 166...
170
    };
166
    };
171
 
167
 
Line 172... Line 168...
172
//    printf("ctx->pix_fmt %d\n", pCodecCtx->pix_fmt);
168
//    printf("ctx->pix_fmt %d\n", pCodecCtx->pix_fmt);
Line 173... Line -...
173
 
-
 
174
    mutex_init(&driver_lock);
169
 
175
    mutex_init(&q_video.lock);
170
    mutex_init(&q_video.lock);
Line 176... Line 171...
176
    mutex_init(&q_audio.lock);
171
    mutex_init(&q_audio.lock);
177
 
172
 
Line 243... Line 238...
243
 
238
 
Line 244... Line 239...
244
    if(astream.lock.handle)
239
    if(astream.lock.handle)
245
        mutex_destroy(&astream.lock);
240
        mutex_destroy(&astream.lock);
Line 246... Line -...
246
 
-
 
247
    mutex_destroy(&driver_lock);
241
 
248
    mutex_destroy(&q_video.lock);
242
    mutex_destroy(&q_video.lock);
Line 249... Line 243...
249
    mutex_destroy(&q_audio.lock);
243
    mutex_destroy(&q_audio.lock);
250
 
244