[browser] add exception handling.
[vuplus_dvbapp] / lib / dvb / decoder.cpp
index df45063..97cb99d 100644 (file)
@@ -206,6 +206,10 @@ int eDVBAudio::startPid(int pid, int type)
        case aDTSHD:
                bypass = 0x10;
                break;
+        case aDDP:
+                bypass = 0x22;
+                break;
+
        }
 
        eDebugNoNewLine("AUDIO_SET_BYPASS(%d) - ", bypass);
@@ -1306,7 +1310,7 @@ RESULT eTSMPEGDecoder::showSinglePic(const char *filename)
                        fstat(f, &s);
                        if (m_video_clip_fd == -1)
                                m_video_clip_fd = open("/dev/dvb/adapter0/video0", O_WRONLY);
-                       while (m_video_clip_fd >= 0)
+                       if (m_video_clip_fd >= 0)
                        {
                                bool seq_end_avail = false;
                                size_t pos=0;