Subversion Repositories Kolibri OS

Rev

Rev 6301 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6301 Rev 6658
Line 28... Line 28...
28
int64_t  rewind_pos;
28
int64_t  rewind_pos;
Line 29... Line 29...
29
 
29
 
Line 30... Line 30...
30
int64_t stream_duration;
30
int64_t stream_duration;
31
 
-
 
Line 32... Line 31...
32
int threads_running = DECODER_THREAD;
31
 
33
 
32
volatile int threads_running = DECODER_THREAD;
34
 
33
 
35
int main( int argc, char *argv[])
34
int main( int argc, char *argv[])
Line 111... Line 110...
111
        printf("Video stream not detected\n\r");
110
        printf("Video stream not detected\n\r");
112
        return -1; // Didn't find a video stream
111
        return -1; // Didn't find a video stream
113
    };
112
    };
114
 
113
 
Line 115... Line -...
115
  //   __asm__ __volatile__("int3");
-
 
Line 116... Line 114...
116
 
114
 
117
    INIT_LIST_HEAD(&vst.input_list);
115
    INIT_LIST_HEAD(&vst.input_list);
118
    INIT_LIST_HEAD(&vst.output_list);
116
    INIT_LIST_HEAD(&vst.output_list);
119
    mutex_init(&vst.q_video.lock);
117
    mutex_init(&vst.q_video.lock);
Line 125... Line 123...
125
 
123
 
Line 126... Line 124...
126
    vst.vCtx = vst.fCtx->streams[vst.vStream]->codec;
124
    vst.vCtx = vst.fCtx->streams[vst.vStream]->codec;
127
    vst.aCtx = vst.fCtx->streams[vst.aStream]->codec;
125
    vst.aCtx = vst.fCtx->streams[vst.aStream]->codec;
Line -... Line 126...
-
 
126
 
-
 
127
//    __asm__ __volatile__("int3");
128
 
128
 
129
    if(init_video_decoder(&vst) != 0 )
129
    if(init_video_decoder(&vst) != 0 )
Line 130... Line 130...
130
        return -1;
130
        return -1;
131
 
131
 
Line 191... Line 191...
191
 
191
 
Line 192... Line 192...
192
    if(astream.lock.handle)
192
    if(astream.lock.handle)
193
        mutex_destroy(&astream.lock);
193
        mutex_destroy(&astream.lock);
Line 194... Line 194...
194
 
194
 
-
 
195
    vst.decoder->fini(&vst);
-
 
196
    avcodec_close(vst.vCtx);
195
    fini_video_decoder(&vst);
197
 
196
    mutex_destroy(&vst.q_video.lock);
198
    mutex_destroy(&vst.q_video.lock);
197
    mutex_destroy(&vst.q_audio.lock);
199
    mutex_destroy(&vst.q_audio.lock);
Line 198... Line 200...
198
    mutex_destroy(&vst.decoder_lock);
200
    mutex_destroy(&vst.decoder_lock);