]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Add handling of a frame_position_string handler for the 'phbt' metadata token.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Sat, 26 Nov 2022 17:56:59 +0000 (17:56 +0000)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Sat, 26 Nov 2022 17:56:59 +0000 (17:56 +0000)
metadata_hub.c

index ec98e2a169f49c3a852871c521ec9494d51c3826..db7eeef546137071a949617c2805b7f2b2bf7176 100644 (file)
@@ -584,6 +584,15 @@ void metadata_hub_process_metadata(uint32_t type, uint32_t code, char *data, uin
       }
       free(cs);
       break;
+    case 'phbt':
+      cs = strndup(data, length);
+      if (string_update(&metadata_store.frame_position_string, &metadata_store.frame_position_string_changed,
+                        cs)) {
+        changed = 1;
+        debug(2, "MH Frame Position String set to: \"%s\"", metadata_store.progress_string);
+      }
+      free(cs);
+      break;
     case 'styp':
       cs = strndup(data, length);
       if (string_update(&metadata_store.stream_type, &metadata_store.stream_type_changed, cs)) {