1 /*****************************************************************************
2 * access.c: DVB card input v4l2 only
3 *****************************************************************************
4 * Copyright (C) 1998-2003 VideoLAN
6 * Authors: Johan Bilien <jobi@via.ecp.fr>
7 * Jean-Paul Saman <jpsaman@wxs.nl>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
25 /*****************************************************************************
27 *****************************************************************************/
32 #include <vlc/input.h>
34 #include "../../demux/mpeg/system.h"
41 #include <sys/types.h>
48 #ifdef STRNCASECMP_IN_STRINGS_H
52 /* DVB Card Drivers */
53 #include <linux/dvb/dmx.h>
54 #include <linux/dvb/frontend.h>
58 #define SATELLITE_READ_ONCE 3
60 /*****************************************************************************
62 *****************************************************************************/
63 static ssize_t SatelliteRead( input_thread_t * p_input, byte_t * p_buffer,
65 static int SatelliteSetArea ( input_thread_t *, input_area_t * );
66 static int SatelliteSetProgram ( input_thread_t *, pgrm_descriptor_t * );
67 static void SatelliteSeek ( input_thread_t *, off_t );
69 /*****************************************************************************
70 * Open: open the frontend device
71 *****************************************************************************/
72 int E_(Open) ( vlc_object_t *p_this )
74 struct dvb_frontend_info frontend_info;
75 struct dvb_frontend_parameters fep;
76 input_thread_t * p_input = (input_thread_t *)p_this;
82 char frontend[] = FRONTEND;
88 /* parse the options passed in command line : */
89 psz_parser = strdup( p_input->psz_name );
95 msg_Dbg(p_input, "method of access is %s", p_input->psz_access);
97 /* Initialise structure */
98 p_dvb = malloc( sizeof( input_dvb_t ) );
102 msg_Err( p_input, "out of memory" );
106 p_input->p_access_data = (void *) p_dvb;
108 /* Get adapter and device number to use for this dvb card */
109 p_dvb->u_adapter = config_GetInt( p_input, "adapter" );
110 p_dvb->u_device = config_GetInt( p_input, "device" );
111 p_dvb->b_probe = config_GetInt( p_input, "probe" );
113 /* Get antenna configuration options */
114 p_dvb->b_diseqc = config_GetInt( p_input, "diseqc" );
115 p_dvb->u_lnb_lof1 = config_GetInt( p_input, "lnb-lof1" );
116 p_dvb->u_lnb_lof2 = config_GetInt( p_input, "lnb-lof2" );
117 p_dvb->u_lnb_slof = config_GetInt( p_input, "lnb-slof" );
119 /* Get modulation parameters */
120 p_dvb->i_bandwidth = config_GetInt( p_input, "bandwidth");
121 p_dvb->i_code_rate_HP = config_GetInt(p_input, "code-rate-hp");
122 p_dvb->i_code_rate_LP = config_GetInt(p_input, "code-rate-lp");
123 p_dvb->i_modulation = config_GetInt(p_input, "modulation");
124 p_dvb->i_transmission = config_GetInt(p_input, "transmission");
125 p_dvb->i_guard = config_GetInt(p_input, "guard");
126 p_dvb->i_hierarchy = config_GetInt(p_input, "hierarchy");
128 /* Register Callback functions */
129 p_input->pf_read = SatelliteRead;
130 p_input->pf_set_program = SatelliteSetProgram;
131 p_input->pf_set_area = SatelliteSetArea;
132 p_input->pf_seek = SatelliteSeek;
134 /* Parse commandline */
135 i_test = strtol( psz_parser, &psz_next, 10 );
136 if( psz_next == psz_parser )
140 if( !strncmp( psz_parser, "frequency=",
141 strlen( "frequency=" ) ) )
144 (unsigned int)strtol( psz_parser + strlen( "frequency=" ),
147 else if( !strncmp( psz_parser, "polarization=",
148 strlen( "polarization=" ) ) )
150 char *psz_parser_init;
151 psz_parser += strlen( "polarization=" );
152 psz_parser_init = psz_parser;
153 while ( *psz_parser != ':')
157 if( (!strncmp( psz_parser_init, "V" ,
158 psz_parser - psz_parser_init ) ) ||
159 (!strncmp( psz_parser_init, "V" ,
160 psz_parser - psz_parser_init ) ) )
162 p_dvb->i_polarisation = 0;
164 else if( (!strncmp( psz_parser_init, "H" ,
165 psz_parser - psz_parser_init ) ) ||
166 (!strncmp( psz_parser_init, "h" ,
167 psz_parser - psz_parser_init ) ) )
170 p_dvb->i_polarisation = 1;
172 else if( (!strncmp( psz_parser_init, "A" ,
173 psz_parser - psz_parser_init ) ) ||
174 (!strncmp( psz_parser_init, "a" ,
175 psz_parser - psz_parser_init ) ) )
178 p_dvb->i_polarisation = 2;
181 else if( !strncmp( psz_parser, "fec=",
185 (int)strtol( psz_parser + strlen( "fec=" ),
188 else if( !strncmp( psz_parser, "srate=",
189 strlen( "srate=" ) ) )
192 (unsigned int)strtol( psz_parser + strlen( "srate=" ),
195 else if( !strncmp( psz_parser, "program=",
196 strlen( "program=" ) ) )
198 val.i_int = (int)strtol( psz_parser + strlen( "program=" ),
200 var_Set( p_input, "program", val );
202 else if( !strncmp( psz_parser, "diseqc",
203 strlen( "disecq" ) ) )
205 psz_parser += strlen("disecq");
206 p_dvb->b_diseqc = VLC_TRUE;
208 else if( !strncmp( psz_parser, "lnb-lof1=",
209 strlen( "lnb-lof1=" ) ) )
212 (unsigned int)strtol( psz_parser + strlen( "lnb-lof1=" ),
214 frontend_info.frequency_min = p_dvb->u_lnb_lof1; /* lnb_lof1 */
216 else if( !strncmp( psz_parser, "lnb-lof2=",
217 strlen( "lnb-lof2=" ) ) )
220 (unsigned int)strtol( psz_parser + strlen( "lnb-lof2=" ),
222 frontend_info.frequency_max = p_dvb->u_lnb_lof2; /* in KHz, lnb_lof2 */
224 else if( !strncmp( psz_parser, "lnb-slof=",
225 strlen( "lnb-slof=" ) ) )
228 (unsigned int)strtol( psz_parser + strlen( "lnb-slof=" ),
231 else if( !strncmp( psz_parser, "device=",
232 strlen( "device=" ) ) )
235 (unsigned int)strtol( psz_parser + strlen( "device=" ),
238 else if( !strncmp( psz_parser, "adapter=",
239 strlen( "adapter=" ) ) )
242 (unsigned int)strtol( psz_parser + strlen( "adapter=" ),
245 else if( !strncmp( psz_parser, "modulation=",
246 strlen( "modulation=" ) ) )
248 p_dvb->i_modulation = (int)strtol( psz_parser + strlen( "modulation=" ),
251 else if( !strncmp( psz_parser, "bandwidth=",
252 strlen( "bandwidth=" ) ) )
254 p_dvb->i_bandwidth = (int)strtol( psz_parser + strlen( "bandwidth=" ),
257 else if( !strncmp( psz_parser, "guard=",
258 strlen( "guard=" ) ) )
260 p_dvb->i_guard = (int)strtol( psz_parser + strlen( "guard=" ),
263 else if( !strncmp( psz_parser, "transmission=",
264 strlen( "transmission=" ) ) )
266 p_dvb->i_transmission = (int)strtol( psz_parser +
267 strlen( "transmission=" ),&psz_parser, 0 );
269 else if( !strncmp( psz_parser, "hierarchy=",
270 strlen( "hierarchy=" ) ) )
272 p_dvb->i_hierarchy = (int)strtol( psz_parser +
273 strlen( "hierarchy=" ),&psz_parser, 0 );
275 else if( !strncmp( psz_parser, "code-rate-HP=",
276 strlen( "code-rate-HP=" ) ) )
278 p_dvb->i_code_rate_HP = (int)strtol( psz_parser +
279 strlen( "code-rate-HP=" ),&psz_parser, 0 );
281 else if( !strncmp( psz_parser, "code-rate-LP=",
282 strlen( "code-rate-LP=" ) ) )
284 p_dvb->i_code_rate_LP = (int)strtol( psz_parser +
285 strlen( "code-rate-LP=" ),&psz_parser, 0 );
287 else if( !strncmp( psz_parser, "probe",
288 strlen( "probe" ) ) )
290 psz_parser += strlen("probe");
291 p_dvb->b_probe = VLC_TRUE;
301 msg_Err(p_input, "DVB Input old syntax deprecreated");
306 /* Determine frontend device */
307 i_len = sizeof(FRONTEND);
308 if( snprintf( frontend, sizeof(FRONTEND), FRONTEND, p_dvb->u_adapter, p_dvb->u_device ) >= i_len )
310 msg_Err( p_input, "snprintf() truncated string for FRONTEND" );
311 frontend[sizeof(FRONTEND)] = '\0';
314 msg_Dbg( p_input, "Opening device %s", frontend );
315 if( ( p_dvb->i_frontend = open( frontend, O_RDWR )) < 0 )
318 msg_Err( p_input, "Opening device failed (%s)", strerror( errno ));
320 msg_Err( p_input, "Opening device failed");
322 close( p_dvb->i_frontend );
327 /* Determine frontend device information and capabilities */
330 if( ioctl_InfoFrontend(p_input, &frontend_info) < 0 )
332 msg_Err( p_input, "(access) cannot determine frontend info" );
333 close( p_dvb->i_frontend );
338 else /* no frontend probing is done so use default border values. */
340 msg_Dbg( p_input, "using default values for frontend info" );
341 strncpy(frontend_info.name, frontend, 128);
343 frontend_info.type = FE_QPSK;
344 if( (strncmp( p_input->psz_access, "qpsk", 4) ==0) ||
345 (strncmp( p_input->psz_access, "dvb-s", 5 ) == 0) ||
346 (strncmp( p_input->psz_access, "satellite", 9 ) == 0) )
347 frontend_info.type = FE_QPSK;
348 else if( (strncmp( p_input->psz_access, "cable", 5) ==0) ||
349 (strncmp( p_input->psz_access, "dvb-c", 5 ) == 0) )
350 frontend_info.type = FE_QAM;
351 else if( (strncmp( p_input->psz_access, "terrestrial", 11) ==0) ||
352 (strncmp( p_input->psz_access, "dvb-t", 5 ) == 0) )
353 frontend_info.type = FE_OFDM;
355 frontend_info.frequency_max = p_dvb->u_lnb_lof2; /* in KHz, lnb_lof2 */
356 frontend_info.frequency_min = p_dvb->u_lnb_lof1; /* lnb_lof1 */
358 frontend_info.symbol_rate_max = 30000000;
359 frontend_info.symbol_rate_min = 1000000;
363 if( ((strncmp( p_input->psz_access, "qpsk", 4 ) == 0) ||
364 (strncmp( p_input->psz_access, "dvb-s", 5 ) == 0) ||
365 (strncmp( p_input->psz_access, "satellite", 9 ) == 0) ) &&
366 (frontend_info.type != FE_QPSK) )
368 if( frontend_info.type == FE_OFDM )
369 msg_Err(p_input, "User expects DVB-S card but DVB-T card found.");
370 else if( frontend_info.type == FE_QAM )
371 msg_Err(p_input, "User expects DVB-S card but DVB-C card found.");
372 else msg_Err(p_input, "User expects DVB-S card but unknown card found.");
374 close( p_dvb->i_frontend );
378 if( ((strncmp( p_input->psz_access, "cable", 5 ) == 0) ||
379 (strncmp( p_input->psz_access, "dvb-c", 5 ) == 0) ) &&
380 (frontend_info.type != FE_QAM) )
382 if( frontend_info.type == FE_OFDM )
383 msg_Err( p_input, "User expects DVB-C card but DVB-T card found." );
384 else if( frontend_info.type == FE_QPSK )
385 msg_Err( p_input, "User expects DVB-C card but DVB-S card found." );
386 else msg_Err( p_input, "User expects DVB-C card but unknown card found." );
388 close( p_dvb->i_frontend );
392 if( ((strncmp( p_input->psz_access, "terrestrial", 11 ) == 0) ||
393 (strncmp( p_input->psz_access, "dvb-t", 5 ) == 0) ) &&
394 (frontend_info.type != FE_OFDM) )
396 if( frontend_info.type == FE_QAM )
397 msg_Err(p_input, "User expects DVB-T card but DVB-C card found.");
398 else if( frontend_info.type == FE_QPSK )
399 msg_Err(p_input, "User expects DVB-T card but DVB-S card found.");
400 else msg_Err(p_input, "User expects DVB-T card but unknown card found.");
402 close( p_dvb->i_frontend );
408 /* Validating input values (QPSK in KHz, OFDM/QAM in Hz) */
409 if( ((p_dvb->u_freq) > frontend_info.frequency_max) ||
410 ((p_dvb->u_freq) < frontend_info.frequency_min) )
412 if( (p_dvb->u_freq) > frontend_info.frequency_max )
413 msg_Err( p_input, "given frequency %u (kHz) > %u (kHz) max. frequency",
414 p_dvb->u_freq, frontend_info.frequency_max );
416 msg_Err( p_input, "given frequency %u (kHz) < %u (kHz) min.frequency",
417 p_dvb->u_freq, frontend_info.frequency_min );
418 msg_Err( p_input, "bailing out given frequency outside specification range for this frontend" );
420 close( p_dvb->i_frontend );
426 /* Workaround for backwards compatibility */
427 if( strncmp( p_input->psz_access, "satellite", 9 ) ==0 )
429 msg_Warn( p_input, "invalid symbol rate %d possibly specified in MHz, trying value *1000 KHz", p_dvb->u_srate );
430 p_dvb->u_srate *= 1000UL;
433 if( ((p_dvb->u_srate) > frontend_info.symbol_rate_max) ||
434 ((p_dvb->u_srate) < frontend_info.symbol_rate_min) )
436 msg_Warn( p_input, "invalid symbol rate, using default one" );
437 p_dvb->u_srate = config_GetInt( p_input, "symbol-rate" );
438 if( ((p_dvb->u_srate) > frontend_info.symbol_rate_max) ||
439 ((p_dvb->u_srate) < frontend_info.symbol_rate_min) )
441 msg_Err( p_input, "invalid default symbol rate" );
443 close( p_dvb->i_frontend );
449 if( (p_dvb->i_fec > 9) || (p_dvb->i_fec < 1) )
451 msg_Warn( p_input, "invalid FEC, using default one" );
452 p_dvb->i_fec = config_GetInt( p_input, "fec" );
453 if( (p_dvb->i_fec > 9) || (p_dvb->i_fec < 1) )
455 msg_Err( p_input, "invalid default FEC" );
456 close( p_dvb->i_frontend );
462 /* Setting frontend parameters for tuning the hardware */
463 msg_Dbg( p_input, "Trying to tune to channel ...");
464 switch( frontend_info.type )
466 /* DVB-S: satellite and budget cards (nova) */
468 fep.frequency = p_dvb->u_freq; /* KHz */
469 fep.inversion = dvb_DecodeInversion( p_input, p_dvb->i_polarisation );
470 fep.u.qpsk.symbol_rate = p_dvb->u_srate;
471 fep.u.qpsk.fec_inner = dvb_DecodeFEC( p_input, p_dvb->i_fec );
472 msg_Dbg( p_input, "DVB-S: satellite (QPSK) frontend %s found", frontend_info.name );
473 while( (i_ret = ioctl_SetQPSKFrontend( p_input, fep )) < 0 )
475 if( (i_ret != -3) && (i_ret < 0))
477 msg_Err( p_input, "DVB-S: tuning failed" );
478 close( p_dvb->i_frontend );
487 fep.frequency = p_dvb->u_freq; /* in Hz */
488 fep.inversion = dvb_DecodeInversion( p_input, p_dvb->i_polarisation );
489 fep.u.qam.symbol_rate = p_dvb->u_srate;
490 fep.u.qam.fec_inner = dvb_DecodeFEC( p_input, p_dvb->i_fec );
491 fep.u.qam.modulation = dvb_DecodeModulation( p_input, p_dvb->i_modulation );
492 msg_Dbg( p_input, "DVB-C: cable (QAM) frontend %s found", frontend_info.name );
493 while( ( i_ret = ioctl_SetQAMFrontend( p_input, fep ) ) < 0 )
495 if( (i_ret != -3) && (i_ret < 0))
497 msg_Err( p_input, "DVB-C: tuning failed" );
498 close( p_dvb->i_frontend );
507 fep.frequency = p_dvb->u_freq; /* in Hz */
508 fep.inversion = dvb_DecodeInversion( p_input, p_dvb->i_polarisation );
509 fep.u.ofdm.bandwidth = dvb_DecodeBandwidth( p_input, p_dvb->i_bandwidth );
510 fep.u.ofdm.code_rate_HP = dvb_DecodeFEC( p_input, p_dvb->i_code_rate_HP );
511 fep.u.ofdm.code_rate_LP = dvb_DecodeFEC( p_input, p_dvb->i_code_rate_LP );
512 fep.u.ofdm.constellation = dvb_DecodeModulation( p_input, p_dvb->i_modulation );
513 fep.u.ofdm.transmission_mode = dvb_DecodeTransmission( p_input, p_dvb->i_transmission );
514 fep.u.ofdm.guard_interval = dvb_DecodeGuardInterval( p_input, p_dvb->i_guard );
515 fep.u.ofdm.hierarchy_information = dvb_DecodeHierarchy( p_input, p_dvb->i_hierarchy );
516 msg_Dbg( p_input, "DVB-T: terrestrial (OFDM) frontend %s found", frontend_info.name );
517 while( (i_ret=ioctl_SetOFDMFrontend( p_input, fep )) < 0 )
519 if( (i_ret != -3) && (i_ret < 0))
521 msg_Err( p_input, "DVB-T: tuning failed" );
522 close( p_dvb->i_frontend );
529 msg_Err( p_input, "Could not determine frontend type on %s", frontend_info.name );
530 close( p_dvb->i_frontend );
534 msg_Dbg( p_input, "Tuning done.");
536 /* Initialise structure */
537 p_dvb->p_satellite = malloc( sizeof( input_socket_t ) );
539 if( p_dvb->p_satellite == NULL )
541 msg_Err( p_input, "out of memory" );
542 close( p_dvb->i_frontend );
547 /* Open the DVR device */
549 if( snprintf( dvr, sizeof(DVR), DVR, p_dvb->u_adapter, p_dvb->u_device ) >= i_len )
551 msg_Err( p_input, "snprintf() truncated string for DVR" );
552 dvr[sizeof(DVR)] = '\0';
554 msg_Dbg( p_input, "opening DVR device '%s'", dvr );
556 if( (p_dvb->p_satellite->i_handle = open( dvr,
557 /*O_NONBLOCK | O_LARGEFILE*/0 ) ) == (-1) )
560 msg_Warn( p_input, "cannot open `%s' (%s)", dvr, strerror( errno ) );
562 msg_Warn( p_input, "cannot open `%s'", dvr );
564 free( p_dvb->p_satellite );
566 close( p_dvb->i_frontend );
571 msg_Dbg( p_input, "setting filter on PAT" );
573 /* Set Filter on PAT packet */
574 if( ioctl_SetDMXFilter(p_input, 0, &i_fd, 21 ) < 0 )
577 msg_Err( p_input, "an error occured when setting filter on PAT (%s)", strerror( errno ) );
579 msg_Err( p_input, "an error occured when setting filter on PAT" );
581 close( p_dvb->p_satellite->i_handle );
582 free( p_dvb->p_satellite );
584 close( p_dvb->i_frontend );
589 if( input_InitStream( p_input, sizeof( stream_ts_data_t ) ) == -1 )
591 msg_Err( p_input, "could not initialize stream structure" );
592 close( p_dvb->p_satellite->i_handle );
593 free( p_dvb->p_satellite );
595 close( p_dvb->i_frontend );
600 vlc_mutex_lock( &p_input->stream.stream_lock );
602 p_input->stream.b_pace_control = 1;
603 p_input->stream.b_seekable = 0;
604 p_input->stream.p_selected_area->i_tell = 0;
606 vlc_mutex_unlock( &p_input->stream.stream_lock );
608 p_input->i_mtu = SATELLITE_READ_ONCE * TS_PACKET_SIZE;
609 p_input->stream.i_method = INPUT_METHOD_SATELLITE;
614 /*****************************************************************************
615 * Close : Close the device
616 *****************************************************************************/
617 void E_(Close) ( vlc_object_t *p_this )
619 input_thread_t * p_input = (input_thread_t *)p_this;
621 unsigned int i_es_index;
623 if( p_input->stream.p_selected_program )
625 for( i_es_index = 1 ;
626 i_es_index < p_input->stream.p_selected_program->i_es_number;
629 #define p_es p_input->stream.p_selected_program->pp_es[i_es_index]
632 ioctl_UnsetDMXFilter(p_input, p_es->i_demux_fd );
638 p_dvb = (input_dvb_t *)p_input->p_access_data;
640 close( p_dvb->p_satellite->i_handle );
641 free( p_dvb->p_satellite );
643 close( p_dvb->i_frontend );
647 /*****************************************************************************
648 * SatelliteRead: reads data from the satellite card
649 *****************************************************************************/
650 static ssize_t SatelliteRead( input_thread_t * p_input, byte_t * p_buffer,
653 input_dvb_t * p_dvb = (input_dvb_t *)p_input->p_access_data;
657 /* if not set, set filters to the PMTs */
658 for( i = 0; i < p_input->stream.i_pgrm_number; i++ )
660 if( p_input->stream.pp_programs[i]->pp_es[0]->i_demux_fd == 0 )
662 ioctl_SetDMXFilter( p_input, p_input->stream.pp_programs[i]->pp_es[0]->i_id,
663 &p_input->stream.pp_programs[i]->pp_es[0]->i_demux_fd, 21 );
667 i_ret = read( p_dvb->p_satellite->i_handle, p_buffer, i_len );
672 msg_Err( p_input, "read failed (%s)", strerror(errno) );
674 msg_Err( p_input, "read failed" );
681 /*****************************************************************************
682 * SatelliteSetArea : Does nothing
683 *****************************************************************************/
684 static int SatelliteSetArea( input_thread_t * p_input, input_area_t * p_area )
689 /*****************************************************************************
690 * SatelliteSetProgram : Sets the card filters according to the
692 * and makes the appropriate changes to stream structure.
693 *****************************************************************************/
694 int SatelliteSetProgram( input_thread_t * p_input,
695 pgrm_descriptor_t * p_new_prg )
697 input_dvb_t * p_dvb = (input_dvb_t *)p_input->p_access_data;
698 unsigned int i_es_index;
700 unsigned int u_video_type = 1; /* default video type */
701 unsigned int u_audio_type = 2; /* default audio type */
703 if( p_input->stream.p_selected_program )
705 for( i_es_index = 1 ; /* 0 should be the PMT */
706 i_es_index < p_input->stream.p_selected_program->i_es_number ;
709 #define p_es p_input->stream.p_selected_program->pp_es[i_es_index]
712 input_UnselectES( p_input , p_es );
714 if( p_es->i_demux_fd > 0 )
716 ioctl_UnsetDMXFilter(p_input, p_es->i_demux_fd );
717 p_es->i_demux_fd = 0;
723 for (i_es_index = 1 ; i_es_index < p_new_prg->i_es_number ; i_es_index ++ )
725 #define p_es p_new_prg->pp_es[i_es_index]
726 switch( p_es->i_cat )
730 case MPEG2_MOTO_VIDEO_ES:
731 if( input_SelectES( p_input , p_es ) == 0 )
733 ioctl_SetDMXFilter(p_input, p_es->i_id, &p_es->i_demux_fd, u_video_type);
739 if( input_SelectES( p_input , p_es ) == 0 )
741 ioctl_SetDMXFilter(p_input, p_es->i_id, &p_es->i_demux_fd, u_audio_type);
742 input_SelectES( p_input , p_es );
747 ioctl_SetDMXFilter(p_input, p_es->i_id, &p_es->i_demux_fd, 21);
748 input_SelectES( p_input , p_es );
749 msg_Warn(p_input, "ES streamtype 0x%d found used as DMX_PES_OTHER !!",(int) p_es->i_cat);
755 p_input->stream.p_selected_program = p_new_prg;
757 /* Update the navigation variables without triggering a callback */
758 val.i_int = p_new_prg->i_number;
759 var_Change( p_input, "program", VLC_VAR_SETVALUE, &val, NULL );
764 /*****************************************************************************
765 * SatelliteSeek: does nothing (not a seekable stream
766 *****************************************************************************/
767 static void SatelliteSeek( input_thread_t * p_input, off_t i_off )