Browse Source

MT#56471 fix return value for media_player_read_decoded_packet()

Since the function has been swapped to the 'bool' return value,
we must comply with it.

media_player.c: In function ‘media_player_read_decoded_packet’:
media_player.c:374:17: warning: ‘return’ with no value,
in function returning non-void
  374 |                 return;
      |                 ^~~~~~
media_player.c:371:13: note: declared here
  371 | static bool media_player_read_decoded_packet(struct media_player *mp) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Change-Id: If4034164de1325b780dcb1792c6a1674ec7b55b4
pull/1640/head
Donat Zenichev 3 years ago
parent
commit
a2aebbba2a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/media_player.c

+ 1
- 1
daemon/media_player.c View File

@ -371,7 +371,7 @@ static void media_player_coder_add_packet(struct media_player_coder *c,
static bool media_player_read_decoded_packet(struct media_player *mp) {
struct media_player_cache_entry *entry = mp->cache_entry;
if (!entry)
return;
return false;
unsigned int read_idx = mp->cache_read_idx;
ilog(LOG_DEBUG, "Buffered media player reading packet #%u", read_idx);


Loading…
Cancel
Save