Ticket #415: mpegstreamdata-novideo.diff
File mpegstreamdata-novideo.diff, 1.1 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/mpeg/mpegstreamdata.cpp
old new 230 230 "only using first one in new PMT"); 231 231 } 232 232 233 _pid_video_single_program = videoPIDs[0]; 234 pids.push_back(videoPIDs[0]); 235 types.push_back(videoTypes[0]); 233 if (videoPIDs.size() != 0) 234 { 235 _pid_video_single_program = videoPIDs[0]; 236 pids.push_back(videoPIDs[0]); 237 types.push_back(videoTypes[0]); 238 } 236 239 237 240 // Audio 238 241 pmt.FindPIDs(StreamID::AnyAudio, pids, types); … … 262 265 SetPMTSingleProgram(pmt2); 263 266 264 267 VERBOSE(VB_RECORD, "PMT for output stream"); 265 VERBOSE(VB_RECORD, pmt2->toString()); 268 if (pmt2->StreamCount() > 0) 269 VERBOSE(VB_RECORD, pmt2->toString()); 270 else 271 VERBOSE(VB_RECORD, "PMT contains no PIDs, continuing anyway"); 272 266 273 267 274 return true; 268 275 }