summaryrefslogtreecommitdiff
path: root/src/player/backends
diff options
context:
space:
mode:
authorMichał Cichoń <michcic@gmail.com>2015-12-05 16:05:51 +0100
committerMichał Cichoń <michcic@gmail.com>2015-12-05 16:05:51 +0100
commitb0176f24ac3e68ef314a9a4ab87f6b2248777614 (patch)
tree99d27abdbc7d46e4af5bf563173c9edac6a0e1d7 /src/player/backends
parentb7a10d561acfa4cc7f8ae15722a7de28ee961d03 (diff)
downloadpianobar-windows-b0176f24ac3e68ef314a9a4ab87f6b2248777614.tar.gz
pianobar-windows-b0176f24ac3e68ef314a9a4ab87f6b2248777614.tar.bz2
pianobar-windows-b0176f24ac3e68ef314a9a4ab87f6b2248777614.zip
Add 'player' configuration option to select player back end. Current valid values:
- 'ds' - for Direct Show - 'mf' - for Windows Media Foundation (default) If not present, backends will be initialized in order: mf, ds
Diffstat (limited to 'src/player/backends')
-rw-r--r--src/player/backends/direct_show.c1
-rw-r--r--src/player/backends/media_foundation.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/player/backends/direct_show.c b/src/player/backends/direct_show.c
index d6597c0..111f042 100644
--- a/src/player/backends/direct_show.c
+++ b/src/player/backends/direct_show.c
@@ -442,6 +442,7 @@ static bool DSPlayerIsFinished(player2_t player)
player2_iface player2_direct_show =
{
+ .Id = "ds",
.Name = "Direct Show",
.Create = DSPlayerCreate,
.Destroy = DSPlayerDestroy,
diff --git a/src/player/backends/media_foundation.cpp b/src/player/backends/media_foundation.cpp
index 749a6f3..6aa0d00 100644
--- a/src/player/backends/media_foundation.cpp
+++ b/src/player/backends/media_foundation.cpp
@@ -1088,6 +1088,7 @@ extern "C" bool WMFPlayerIsFinished(player2_t player)
extern "C" player2_iface player2_windows_media_foundation =
{
+ /*.Id =*/ "mf",
/*.Name =*/ "Windows Media Foundation",
/*.Create =*/ WMFPlayerCreate,
/*.Destroy =*/ WMFPlayerDestroy,