]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
service: translate stream language code to iso-639-2/b
authorxhaggi <sascha.woo@gmail.com>
Wed, 5 Sep 2012 15:07:05 +0000 (17:07 +0200)
committerAdam Sutton <dev@adamsutton.me.uk>
Tue, 11 Sep 2012 13:44:41 +0000 (14:44 +0100)
src/service.c

index 5e289eec8901f4ea98bd48f732bfcbd6bb021dcc..2ef18c42378b7d86dfb113ea06b35074d967f513 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Services
- *  Copyright (C) 2010 Andreas Öman
+ *  Copyright (C) 2010 Andreas Öman
  *
  *  This program is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -47,6 +47,7 @@
 #include "atomic.h"
 #include "dvb/dvb.h"
 #include "htsp.h"
+#include "lang_codes.h"
 
 #define SERVICE_HASH_WIDTH 101
 
@@ -890,7 +891,7 @@ service_build_stream_start(service_t *t)
     ssc->ssc_index = st->es_index;
     ssc->ssc_type  = st->es_type;
 
-    memcpy(ssc->ssc_lang, st->es_lang, 4);
+    memcpy(ssc->ssc_lang, lang_code_get(st->es_lang), 4);
     ssc->ssc_composition_id = st->es_composition_id;
     ssc->ssc_ancillary_id = st->es_ancillary_id;
     ssc->ssc_pid = st->es_pid;