This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: libdvbv5: properly represent Satellite frequencies
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Mon Oct 27 12:30:21 2014 -0200

Satellite frequencies are stored in kHz instead of Hz.

[[email protected]: Got just one hunk from Akihiro's patch,
 as his patch got a merge conflict. The rest of his patch were
 actually trying to fix a memory leak bug that were supposed to be
 already fixed]

Reported-by: Akihiro Tsukada <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
(cherry picked from commit d1792f71800d60c3b1ab3030062eaa3583dcc77f)

 lib/libdvbv5/dvb-file.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=2e6c3a27c55515cf4e8a85bfcf712c5f7de789fe

diff --git a/lib/libdvbv5/dvb-file.c b/lib/libdvbv5/dvb-file.c
index 479f47e..0347da4 100644
--- a/lib/libdvbv5/dvb-file.c
+++ b/lib/libdvbv5/dvb-file.c
@@ -1142,7 +1142,9 @@ static int get_program_and_store(struct 
dvb_v5_fe_parms_priv *parms,
                        freq = parms->dvb_prop[j].u.data;
        }
        if (!channel) {
-               r = asprintf(&channel, "%.2fMHz#%d", freq/1000000., service_id);
+               r = asprintf(&channel, "%.2f%cHz#%d", freq / 1000000.,
+                       dvb_fe_is_satellite(parms->p.current_sys) ? 'G' : 'M',
+                       service_id);
                if (r < 0)
                        dvb_perror("asprintf");
                dvb_log("Storing Service ID %d: '%s'", service_id, channel);

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to