~ubuntu-branches/debian/wheezy/vlc/wheezy

« back to all changes in this revision

Viewing changes to modules/gui/macosx/eyetv.m

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung, Benjamin Drung, Reinhard Tartler
  • Date: 2011-06-11 19:32:24 UTC
  • mfrom: (1.3.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20110611193224-dcd1xbsw8d7or72y
Tags: 1.1.10-1
[ Benjamin Drung ]
* New upstream release.
  - Security: Fix XSPF integer overflow (CVE-2011-2194) (LP: #795410)
  - Improve .desktop file:
    - Add smb as supported protocol (Closes: #622879, LP: #737192)
    - add video/webm to supported MIME formats (LP: #769463)
  - Fix libdvdread errors while playing ogg files (Closes: #622935)
  - Support three channels in pulseaudio output plugin (LP: 743478)
  - PulseAudio output re-written due to unstability of the current one
    (LP: #743323)
  - Fix crashes (LP: #754497, #785979)
  - Qt: allow drag and drop of any URL, not just a local file (LP: #664030)
  - Fix libvlcplugin.so: undefined symbol: NPP_Initialize (LP: #722690)
* Refresh patches.
* Drop as-needed patch due to autoreconf run.
* Backport PulseAudio build fix.
* Add GNOME MIME types for Ogg Vorbis and Ogg Theora (Closes: #629619).
* Mention potcast support in package description (Closes: #488771).

[ Reinhard Tartler ]
* run autoreconf on the buildds
* Weaken dependencies on libschroedinger

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
* eyetv.m: small class to control the notification parts of the EyeTV plugin
3
3
*****************************************************************************
4
 
* Copyright (C) 2006-2007 the VideoLAN team
5
 
* $Id: 8220a7159ab489e7a1412d83fb4c3907aeed8f95 $
 
4
* Copyright (C) 2006-2011 the VideoLAN team
 
5
* $Id: 690ff164804cd85b3d92bb9e5f03e091ba00146f $
6
6
*
7
7
* Authors: Felix Kühne <fkuehne at videolan dot org>
8
 
*                Damien Fouilleul <damienf at videolan dot org>
 
8
*          Damien Fouilleul <damienf at videolan dot org>
9
9
*
10
10
* This program is free software; you can redistribute it and/or modify
11
11
* it under the terms of the GNU General Public License as published by
23
23
*****************************************************************************/
24
24
 
25
25
#import "eyetv.h"
26
 
/* for apple event interaction [carbon] */
27
 
//#import <Foundation/NSAppleScript>
28
 
/* for various VLC core related calls */
29
26
#import "intf.h"
30
27
 
31
28
@implementation VLCEyeTVController
57
54
 
58
55
- (void)globalNotificationReceived: (NSNotification *)theNotification
59
56
{
60
 
    msg_Dbg( VLCIntf, "notification received in VLC with name %s and object %s",
61
 
             [[theNotification name] UTF8String], [[theNotification object] UTF8String] );
62
 
 
63
 
    /* update our info on the used device */
 
57
   /* update our info on the used device */
64
58
    if( [[theNotification name] isEqualToString: @"DeviceAdded"] )
65
59
        b_deviceConnected = YES;
66
60
    if( [[theNotification name] isEqualToString: @"DeviceRemoved"] )
95
89
    if( nil == descriptor ) 
96
90
    {
97
91
        NSString *errorString = [errorDict objectForKey:NSAppleScriptErrorMessage];
98
 
        msg_Err( VLCIntf, "opening EyeTV failed with error status '%s'", [errorString UTF8String] );
 
92
        NSLog( @"opening EyeTV failed with error status '%@'", errorString );
99
93
    }
100
94
    [script release];
101
95
}
110
104
    if( nil == descriptor ) 
111
105
    {
112
106
        NSString *errorString = [errorDict objectForKey:NSAppleScriptErrorMessage];
113
 
        msg_Err( VLCIntf, "EyeTV channel inventory failed with error status '%s'", [errorString UTF8String] );
 
107
        NSLog( @"EyeTV channel inventory failed with error status '%@'", errorString );
114
108
    }
115
109
    else
116
110
    {
134
128
                       "channel_up\n"
135
129
                       "get current channel\n"
136
130
                     "end tell"];
137
 
        msg_Dbg( VLCIntf, "telling eyetv to switch 1 channel up" );
 
131
        NSLog( @"telling eyetv to switch 1 channel up" );
138
132
    }
139
133
    else
140
134
    {
143
137
                       "channel_down\n"
144
138
                       "get current channel\n"
145
139
                     "end tell"];
146
 
        msg_Dbg( VLCIntf, "telling eyetv to switch 1 channel down" );
 
140
        NSLog( @"telling eyetv to switch 1 channel down" );
147
141
    }
148
142
    
149
143
    descriptor = [script executeAndReturnError:&errorDict];
150
144
    if( nil == descriptor ) 
151
145
    {
152
146
        NSString *errorString = [errorDict objectForKey:NSAppleScriptErrorMessage];
153
 
        msg_Err( VLCIntf, "EyeTV channel change failed with error status '%s'", [errorString UTF8String] );
 
147
        NSLog( @"EyeTV channel change failed with error status '%@'", errorString );
154
148
    }
155
149
    else
156
150
    {
203
197
    if( nil == descriptor ) 
204
198
    {
205
199
        NSString *errorString = [errorDict objectForKey:NSAppleScriptErrorMessage];
206
 
        msg_Err( VLCIntf, "EyeTV source change failed with error status '%s'", [errorString UTF8String] );
 
200
        NSLog( @"EyeTV source change failed with error status '%@'", errorString );
207
201
    }
208
202
    [script release];
209
203
}
218
212
    if( nil == descriptor ) 
219
213
    {
220
214
        NSString *errorString = [errorDict objectForKey:NSAppleScriptErrorMessage];
221
 
        msg_Err( VLCIntf, "EyeTV channel inventory failed with error status '%s'", [errorString UTF8String] );
 
215
        NSLog( @"EyeTV channel inventory failed with error status '%@'", errorString );
222
216
    }
223
217
    else
224
218
    {