diff options
author | John Stebbins <[email protected]> | 2016-12-15 08:34:26 -0800 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-12-15 08:39:32 -0800 |
commit | ed9e73eb7ce9b9b0113a4ef6a697720f48c1f285 (patch) | |
tree | 17f5d7148c875f55c6df1337bb66649ae74f4d5c /libhb/reader.c | |
parent | e6221697782b83a0e4ced36085b74ce36ddf2a21 (diff) |
reader: fix compiler warning "buf uninitialized"
Diffstat (limited to 'libhb/reader.c')
-rw-r--r-- | libhb/reader.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libhb/reader.c b/libhb/reader.c index 9b8b6084e..0b9113d34 100644 --- a/libhb/reader.c +++ b/libhb/reader.c @@ -473,6 +473,13 @@ static int reader_work( hb_work_object_t * w, hb_buffer_t ** buf_in, return HB_WORK_DONE; } } + else + { + // This should never happen + hb_error("Stream not initialized"); + reader_send_eof(r); + return HB_WORK_DONE; + } (hb_demux[r->title->demuxer])(buf, &list, &r->demux); |