mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-10 13:18:14 -05:00
Merge pull request #190 from chme/pausestream
Restore behaviour for pause command when playing http-streams
This commit is contained in:
commit
ac3d47430c
11
src/player.c
11
src/player.c
@ -1011,6 +1011,9 @@ stream_pause(struct player_source *ps)
|
|||||||
switch (ps->data_kind)
|
switch (ps->data_kind)
|
||||||
{
|
{
|
||||||
case DATA_KIND_HTTP:
|
case DATA_KIND_HTTP:
|
||||||
|
ret = 0;
|
||||||
|
break;
|
||||||
|
|
||||||
case DATA_KIND_FILE:
|
case DATA_KIND_FILE:
|
||||||
ret = 0;
|
ret = 0;
|
||||||
break;
|
break;
|
||||||
@ -2741,6 +2744,14 @@ playback_pause_bh(struct player_command *cmd)
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
if (cur_streaming->data_kind == DATA_KIND_HTTP
|
||||||
|
|| cur_streaming->data_kind == DATA_KIND_PIPE)
|
||||||
|
{
|
||||||
|
DPRINTF(E_DBG, L_PLAYER, "Source is not pausable, abort playback\n");
|
||||||
|
|
||||||
|
playback_abort();
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
status_update(PLAY_PAUSED);
|
status_update(PLAY_PAUSED);
|
||||||
|
|
||||||
if (cur_streaming->media_kind & (MEDIA_KIND_MOVIE | MEDIA_KIND_PODCAST | MEDIA_KIND_AUDIOBOOK | MEDIA_KIND_TVSHOW))
|
if (cur_streaming->media_kind & (MEDIA_KIND_MOVIE | MEDIA_KIND_PODCAST | MEDIA_KIND_AUDIOBOOK | MEDIA_KIND_TVSHOW))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user