|
Lines 321-327
Link Here
|
| 321 |
} |
321 |
} |
| 322 |
|
322 |
|
| 323 |
//ffmpeg works with ours "fileops" helper |
323 |
//ffmpeg works with ours "fileops" helper |
| 324 |
AVFormatContext *format_context; |
324 |
AVFormatContext *format_context = NULL; |
| 325 |
if (av_open_input_stream(&format_context, stream->io, input->uri, |
325 |
if (av_open_input_stream(&format_context, stream->io, input->uri, |
| 326 |
input_format, NULL) != 0) { |
326 |
input_format, NULL) != 0) { |
| 327 |
g_warning("Open failed\n"); |
327 |
g_warning("Open failed\n"); |
|
Lines 470-476
Link Here
|
| 470 |
if (stream == NULL) |
470 |
if (stream == NULL) |
| 471 |
return NULL; |
471 |
return NULL; |
| 472 |
|
472 |
|
| 473 |
AVFormatContext *f; |
473 |
AVFormatContext *f = NULL; |
| 474 |
if (av_open_input_stream(&f, stream->io, is->uri, |
474 |
if (av_open_input_stream(&f, stream->io, is->uri, |
| 475 |
input_format, NULL) != 0) { |
475 |
input_format, NULL) != 0) { |
| 476 |
mpd_ffmpeg_stream_close(stream); |
476 |
mpd_ffmpeg_stream_close(stream); |