avio: deprecate url_fileno
It's an evil hack that assumes an AVIOContext is always based on top of an URLContext. It's also not used anywhere. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
		
							parent
							
								
									447fe33691
								
							
						
					
					
						commit
						8d9769a77b
					
				@ -623,9 +623,10 @@ int url_resetbuf(AVIOContext *s, int flags);
 | 
				
			|||||||
int avio_open(AVIOContext **s, const char *url, int flags);
 | 
					int avio_open(AVIOContext **s, const char *url, int flags);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int avio_close(AVIOContext *s);
 | 
					int avio_close(AVIOContext *s);
 | 
				
			||||||
URLContext *url_fileno(AVIOContext *s);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if FF_API_OLD_AVIO
 | 
					#if FF_API_OLD_AVIO
 | 
				
			||||||
 | 
					attribute_deprecated URLContext *url_fileno(AVIOContext *s);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * @deprecated use AVIOContext.max_packet_size directly.
 | 
					 * @deprecated use AVIOContext.max_packet_size directly.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -923,10 +923,12 @@ int avio_close(AVIOContext *s)
 | 
				
			|||||||
    return url_close(h);
 | 
					    return url_close(h);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if FF_API_OLD_AVIO
 | 
				
			||||||
URLContext *url_fileno(AVIOContext *s)
 | 
					URLContext *url_fileno(AVIOContext *s)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    return s->opaque;
 | 
					    return s->opaque;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int avio_printf(AVIOContext *s, const char *fmt, ...)
 | 
					int avio_printf(AVIOContext *s, const char *fmt, ...)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user