Changeset 1198:c58e3eb1b4b9 in mediastreamer2
- Timestamp:
- Nov 12, 2010 7:27:28 PM (3 years ago)
- Branch:
- default
- Location:
- src
- Files:
-
- 3 edited
-
android-display.c (modified) (3 diffs)
-
nowebcam.c (modified) (1 diff)
-
videostream.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/android-display.c
r1193 r1198 130 130 ms_error("AndroidBitmap_lockPixels() failed !"); 131 131 } 132 ms_message("Ask draw of bitmap");133 132 (*ad->jenv)->CallVoidMethod(ad->jenv,ad->android_video_window,ad->update_id); 134 133 } … … 140 139 ms_queue_flush(f->inputs[0]); 141 140 ms_queue_flush(f->inputs[1]); 141 142 if (ad->jenv!=NULL){ 143 jint result = (*(ad->jvm))->DetachCurrentThread(ad->jvm); 144 if (result != 0) { 145 ms_error("android_display_process(): cannot detach VM"); 146 } 147 ad->jenv=NULL; 148 } 142 149 } 143 150 … … 184 191 .preprocess=android_display_preprocess, 185 192 .process=android_display_process, 186 .uninit=android_display_uninit 193 .uninit=android_display_uninit, 194 .methods=methods 187 195 }; 188 196 -
src/nowebcam.c
r1165 r1198 49 49 AVPacket pkt; 50 50 MSPicture dest; 51 AVCodec *codec=avcodec_find_decoder(CODEC_ID_MJPEG); 52 53 if (codec==NULL){ 54 ms_error("Could not find MJPEG decoder in ffmpeg."); 55 return NULL; 56 } 51 57 52 58 avcodec_get_context_defaults(&av_context); 53 if (avcodec_open(&av_context, avcodec_find_decoder(CODEC_ID_MJPEG))<0){59 if (avcodec_open(&av_context,codec)<0){ 54 60 ms_error("jpeg2yuv: avcodec_open failed"); 55 61 return NULL; -
src/videostream.c
r1197 r1198 511 511 void video_stream_set_native_window_id(VideoStream *stream, unsigned long id){ 512 512 stream->window_id=id; 513 if (stream->output){ 514 ms_filter_call_method(stream->output,MS_VIDEO_DISPLAY_SET_NATIVE_WINDOW_ID,&id); 515 } 513 516 } 514 517
Note: See TracChangeset
for help on using the changeset viewer.
