| 
																	
																	
																		
																	
																	
																 | 
																@@ -210,6 +210,7 @@ fail: | 
															
														
														
													
														
															
																 | 
																 | 
																static int vfw_read_close(AVFormatContext *s) | 
																 | 
																 | 
																static int vfw_read_close(AVFormatContext *s) | 
															
														
														
													
														
															
																 | 
																 | 
																{ | 
																 | 
																 | 
																{ | 
															
														
														
													
														
															
																 | 
																 | 
																    struct vfw_ctx *ctx = s->priv_data; | 
																 | 
																 | 
																    struct vfw_ctx *ctx = s->priv_data; | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    AVPacketList *pktl; | 
															
														
														
													
														
															
																 | 
																 | 
																
  | 
																 | 
																 | 
																
  | 
															
														
														
													
														
															
																 | 
																 | 
																    if(ctx->hwnd) { | 
																 | 
																 | 
																    if(ctx->hwnd) { | 
															
														
														
													
														
															
																 | 
																 | 
																        SendMessage(ctx->hwnd, WM_CAP_SET_CALLBACK_VIDEOSTREAM, 0, 0); | 
																 | 
																 | 
																        SendMessage(ctx->hwnd, WM_CAP_SET_CALLBACK_VIDEOSTREAM, 0, 0); | 
															
														
														
													
												
													
														
															
																| 
																	
																	
																	
																		
																	
																 | 
																@@ -221,6 +222,14 @@ static int vfw_read_close(AVFormatContext *s) | 
															
														
														
													
														
															
																 | 
																 | 
																    if(ctx->event) | 
																 | 
																 | 
																    if(ctx->event) | 
															
														
														
													
														
															
																 | 
																 | 
																        CloseHandle(ctx->event); | 
																 | 
																 | 
																        CloseHandle(ctx->event); | 
															
														
														
													
														
															
																 | 
																 | 
																
  | 
																 | 
																 | 
																
  | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    pktl = ctx->pktl; | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    while (pktl) { | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        AVPacketList *next = pktl->next; | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        av_destruct_packet(&pktl->pkt); | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        av_free(pktl); | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        pktl = next; | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    } | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																
  | 
															
														
														
													
														
															
																 | 
																 | 
																    return 0; | 
																 | 
																 | 
																    return 0; | 
															
														
														
													
														
															
																 | 
																 | 
																} | 
																 | 
																 | 
																} | 
															
														
														
													
														
															
																 | 
																 | 
																
  | 
																 | 
																 | 
																
  | 
															
														
														
													
												
													
														
															
																| 
																	
																		
																	
																	
																	
																 | 
																
  |