hls: Free packets when skipping packets when seeking
This fixes memory leaks present since 2b3d041cdc. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
		
							parent
							
								
									a2b7eeeb06
								
							
						
					
					
						commit
						06205b5efd
					
				@ -651,6 +651,8 @@ start:
 | 
				
			|||||||
                    c->seek_timestamp = AV_NOPTS_VALUE;
 | 
					                    c->seek_timestamp = AV_NOPTS_VALUE;
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					                av_free_packet(&var->pkt);
 | 
				
			||||||
 | 
					                reset_packet(&var->pkt);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        /* Check if this stream still is on an earlier segment number, or
 | 
					        /* Check if this stream still is on an earlier segment number, or
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user