Skip to content
This repository
Browse code

[cosmetic] indenting after try/catch in GetStreamDetails

  • Loading branch information...
commit f8772de1060fd4a51f4a5f77b8051cb6b86cd7f0 1 parent 94372af
authored November 18, 2012

Showing 1 changed file with 41 additions and 41 deletions. Show diff stats Hide diff stats

  1. 82  xbmc/video/VideoDatabase.cpp
82  xbmc/video/VideoDatabase.cpp
@@ -3081,53 +3081,53 @@ bool CVideoDatabase::GetStreamDetails(CVideoInfoTag& tag) const
3081 3081
   auto_ptr<Dataset> pDS(m_pDB->CreateDataset());
3082 3082
   try
3083 3083
   {
3084  
-  CStdString strSQL = PrepareSQL("SELECT * FROM streamdetails WHERE idFile = %i", tag.m_iFileId);
3085  
-  pDS->query(strSQL);
  3084
+    CStdString strSQL = PrepareSQL("SELECT * FROM streamdetails WHERE idFile = %i", tag.m_iFileId);
  3085
+    pDS->query(strSQL);
3086 3086
 
3087  
-  while (!pDS->eof())
3088  
-  {
3089  
-    CStreamDetail::StreamType e = (CStreamDetail::StreamType)pDS->fv(1).get_asInt();
3090  
-    switch (e)
  3087
+    while (!pDS->eof())
3091 3088
     {
3092  
-    case CStreamDetail::VIDEO:
3093  
-      {
3094  
-        CStreamDetailVideo *p = new CStreamDetailVideo();
3095  
-        p->m_strCodec = pDS->fv(2).get_asString();
3096  
-        p->m_fAspect = pDS->fv(3).get_asFloat();
3097  
-        p->m_iWidth = pDS->fv(4).get_asInt();
3098  
-        p->m_iHeight = pDS->fv(5).get_asInt();
3099  
-        p->m_iDuration = pDS->fv(10).get_asInt();
3100  
-        details.AddStream(p);
3101  
-        retVal = true;
3102  
-        break;
3103  
-      }
3104  
-    case CStreamDetail::AUDIO:
3105  
-      {
3106  
-        CStreamDetailAudio *p = new CStreamDetailAudio();
3107  
-        p->m_strCodec = pDS->fv(6).get_asString();
3108  
-        if (pDS->fv(7).get_isNull())
3109  
-          p->m_iChannels = -1;
3110  
-        else
3111  
-          p->m_iChannels = pDS->fv(7).get_asInt();
3112  
-        p->m_strLanguage = pDS->fv(8).get_asString();
3113  
-        details.AddStream(p);
3114  
-        retVal = true;
3115  
-        break;
3116  
-      }
3117  
-    case CStreamDetail::SUBTITLE:
  3089
+      CStreamDetail::StreamType e = (CStreamDetail::StreamType)pDS->fv(1).get_asInt();
  3090
+      switch (e)
3118 3091
       {
3119  
-        CStreamDetailSubtitle *p = new CStreamDetailSubtitle();
3120  
-        p->m_strLanguage = pDS->fv(9).get_asString();
3121  
-        details.AddStream(p);
3122  
-        retVal = true;
3123  
-        break;
  3092
+      case CStreamDetail::VIDEO:
  3093
+        {
  3094
+          CStreamDetailVideo *p = new CStreamDetailVideo();
  3095
+          p->m_strCodec = pDS->fv(2).get_asString();
  3096
+          p->m_fAspect = pDS->fv(3).get_asFloat();
  3097
+          p->m_iWidth = pDS->fv(4).get_asInt();
  3098
+          p->m_iHeight = pDS->fv(5).get_asInt();
  3099
+          p->m_iDuration = pDS->fv(10).get_asInt();
  3100
+          details.AddStream(p);
  3101
+          retVal = true;
  3102
+          break;
  3103
+        }
  3104
+      case CStreamDetail::AUDIO:
  3105
+        {
  3106
+          CStreamDetailAudio *p = new CStreamDetailAudio();
  3107
+          p->m_strCodec = pDS->fv(6).get_asString();
  3108
+          if (pDS->fv(7).get_isNull())
  3109
+            p->m_iChannels = -1;
  3110
+          else
  3111
+            p->m_iChannels = pDS->fv(7).get_asInt();
  3112
+          p->m_strLanguage = pDS->fv(8).get_asString();
  3113
+          details.AddStream(p);
  3114
+          retVal = true;
  3115
+          break;
  3116
+        }
  3117
+      case CStreamDetail::SUBTITLE:
  3118
+        {
  3119
+          CStreamDetailSubtitle *p = new CStreamDetailSubtitle();
  3120
+          p->m_strLanguage = pDS->fv(9).get_asString();
  3121
+          details.AddStream(p);
  3122
+          retVal = true;
  3123
+          break;
  3124
+        }
3124 3125
       }
3125  
-    }
3126 3126
 
3127  
-    pDS->next();
3128  
-  }
  3127
+      pDS->next();
  3128
+    }
3129 3129
 
3130  
-  pDS->close();
  3130
+    pDS->close();
3131 3131
   }
3132 3132
   catch (...)
3133 3133
   {

0 notes on commit f8772de

Please sign in to comment.
Something went wrong with that request. Please try again.