- /*msg_Dbg( p_image->p_parent, "could not open file %s for reading",
- psz_url );*/
- /* if file couldn't be opened, try to open the url with the stream
- * functions. Any url can be thus be opened. */
- p_stream = stream_UrlNew( p_image->p_parent, psz_url );
- if( !p_stream )
- {
- msg_Dbg( p_image->p_parent, "could not open %s for reading",
- psz_url );
- return NULL;
- }
- else
- {
- i_size = stream_Size( p_stream );
- }