deps/media-playback: Remove unnecessary logging

Failure to decode is unfortunately quite common with certain file types,
and is most of the time safely recoverable.  There's no reason to
actually output a log message for this unless really needed.
This commit is contained in:
jp9000
2017-05-15 15:17:13 -07:00
parent 0a82d87d82
commit b2717132d9
2 changed files with 4 additions and 0 deletions

View File

@@ -256,8 +256,10 @@ bool mp_decode_next(struct mp_decode *d)
return true;
}
if (ret < 0) {
#ifdef DETAILED_DEBUG_INFO
blog(LOG_DEBUG, "MP: decode failed: %s",
av_err2str(ret));
#endif
if (d->packet_pending) {
av_packet_unref(&d->orig_pkt);

View File

@@ -104,6 +104,8 @@ extern void mp_media_free(mp_media_t *media);
extern void mp_media_play(mp_media_t *media, bool loop);
extern void mp_media_stop(mp_media_t *media);
/* #define DETAILED_DEBUG_INFO */
#ifdef __cplusplus
}
#endif