~ubuntu-branches/ubuntu/precise/me-tv/precise-proposed

« back to all changes in this revision

Viewing changes to src/initial_scan_line.cc

  • Committer: Bazaar Package Importer
  • Author(s): Scott Evans
  • Date: 2009-06-27 00:46:22 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090627004622-q0zvsie6ioa60vh3
Tags: 0.9.4-0ubuntu1
* New upstream release (LP: #379706)
  - Fix to stop EPG update crashing the application
    after faulty save (LP: #72872)
  - Fixed spin buttons from GtkBuilder conversion (LP: #382197) 
  - Fixed icon on application popup menu (LP: #379685)
  - Fixed compiling of me-tv-0.8.12 fails on Fedora 11 (LP: #377020)
  - Fixed Failed to lock to channel at boot (LP: #377050)
  - Increased timeout to 5 seconds again (LP: #371165)
  - Fixed me-tv unusually slow, often freezes (LP: #351510)
  - Fixed channel persistence (LP: #361514)
  - Fix for forward slashes in description (LP: #359710)
  - Fixed Must create .me-tv directory manually (LP: #353796)
  - Fixed audio stream can't be changed (LP: #350402)
* debian/control:
  - Removed dependency libxine1-ffmpeg, libxine1-x
  - Removed libglademm-2.4-dev Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 */
20
20
 
21
21
#include "initial_scan_line.h"
 
22
#include "dvb_transponder.h"
 
23
 
 
24
using namespace Dvb;
22
25
 
23
26
struct StringTable InitialScanLine::bandwidth_table[] =
24
27
{
94
97
        { NULL, 0 }
95
98
};
96
99
 
 
100
struct StringTable InitialScanLine::polarisation_table[] =
 
101
{
 
102
        { "V",  POLARISATION_VERTICAL },
 
103
        { "R",  POLARISATION_VERTICAL },
 
104
        { "H",  POLARISATION_HORIZONTAL },
 
105
        { "L",  POLARISATION_HORIZONTAL },
 
106
        { NULL, 0 }
 
107
};
 
108
 
97
109
InitialScanLine::InitialScanLine(const Glib::ustring& line) : splitter(line, " ", 20)
98
110
{
99
111
}
137
149
{
138
150
        return splitter.get_int_value(index);
139
151
}
 
152
 
 
153
guint InitialScanLine::get_polarisation(guint index)
 
154
{
 
155
        return (guint)convert_string_to_value(polarisation_table, splitter.get_value(index));
 
156
}