title: VLCMobileKit iOS crash on screen lock on iPhone 4
body: <p>I am facing a strange issue in MobileVLCKit for iOS.I am playing RTSP links in my app. I have set the flag to play audio and video in background to true in my app. So when the app goes in background the video playing in my VLC player keeps playing without any problem.
  But on iPhone 4 (with iOS 7.0.4) when I lock the screen of my iPhone when the video is playing, the app crashes without showing any logs. Strange thing is that if I send the app in background by pressing home button then the app doesn't crash. The issue is only on iPhone 4 and not on iPhone 5.
  Have somebody come across such issue before? </p>
  
  <p>Bellow is device crash log:</p>
  
  <pre><code>May 27 03:18:41 My-iPhone-VI kernel[0] &lt;Debug&gt;: 019323.846533 wlan.A[400] AppleBCMWLANNetManager::updateLinkQualityMetrics(): Report LQM to User Land 100, fAverageRSSI -69
  May 27 03:18:41 My-iPhone-VI kernel[0] &lt;Debug&gt;: ALS: AppleARMBacklight::setBacklightEnableGated 0 (set level to 0x1c8)
  May 27 03:18:41 My-iPhone-VI kernel[0] &lt;Debug&gt;: AppleMultitouchN1SPI: updating power statistics
  May 27 03:18:41 My-iPhone-VI kernel[0] &lt;Debug&gt;: ALS: AppleARMBacklight::handleMessageGated - framebufferState -&gt; 0
  May 27 03:18:41 My-iPhone-VI backboardd[28] &lt;Notice&gt;: Posting 'com.apple.iokit.hid.displayStatus' notifyState=0
  May 27 03:18:41 My-iPhone-VI SpringBoard[34] &lt;Warning&gt;: [MPUNowPlayingController] Not registered for now playing notifications. Ignoring call to -unregisterForNotifications.
  May 27 03:18:41 My-iPhone-VI backboardd[28] &lt;Notice&gt;: MultitouchHID: detection mode: 0-&gt;255
  May 27 03:18:41 My-iPhone-VI MyApp[817] &lt;Warning&gt;: log: applicationWillResignActive
  May 27 03:18:41 My-iPhone-VI MyApp[817] &lt;Warning&gt;: log: applicationDidEnterBackground
  May 27 03:18:42 My-iPhone-VI profiled[818] &lt;Notice&gt;: (Note ) profiled: Service starting...
  May 27 03:18:42 My-iPhone-VI ReportCrash[819] &lt;Notice&gt;: ReportCrash acting against PID 817
  May 27 03:18:43 My-iPhone-VI ReportCrash[819] &lt;Notice&gt;: Formulating crash report for process MyApp[817]
  May 27 03:18:43 My-iPhone-VI com.apple.launchd[1] (UIKitApplication:com.My.MyApp[0x19d8][817]) &lt;Warning&gt;: (UIKitApplication:com.My.MyApp[0x19d8]) Job appears to have crashed: Segmentation fault: 11
  May 27 03:18:43 My-iPhone-VI backboardd[28] &lt;Warning&gt;: Application 'UIKitApplication:com.My.MyApp[0x19d8]' exited abnormally with signal 11: Segmentation fault: 11
  May 27 03:18:43 My-iPhone-VI mediaserverd[46] &lt;Warning&gt;: Encountered an XPC error while communicating with backboardd: &lt;error: 0x3cd9f744&gt; { count = 1, contents =
      "XPCErrorDescription" =&gt; &lt;string: 0x3cd9f9dc&gt; { length = 22, contents = "Connection interrupted" }
  }
  May 27 03:18:43 My-iPhone-VI ReportCrash[819] &lt;Notice&gt;: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/MyApp_2014-05-27-031842_My-iPhone-VI.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
  May 27 03:18:53 My-iPhone-VI profiled[818] &lt;Notice&gt;: (Note ) profiled: Service stopping.
  </code></pre>
  
  <p>Below is the stack trace taken in method <strong>didEnterBackground:</strong></p>
  
  <pre><code> Stack trace : (
  0   MyApp                           0x0010a191 -[MyAppAppDelegate applicationDidEnterBackground:] + 76
  1   UIKit                               0x2fc85543 &lt;redacted&gt; + 590
  2   UIKit                               0x2fc06ae1 &lt;redacted&gt; + 764
  3   UIKit                               0x2fc06721 &lt;redacted&gt; + 72
  4   UIKit                               0x2fc6bb3d &lt;redacted&gt; + 664
  5   GraphicsServices                    0x320a270d &lt;redacted&gt; + 608
  6   GraphicsServices                    0x320a22f7 &lt;redacted&gt; + 34
  7   CoreFoundation                      0x2d4599df &lt;redacted&gt; + 34
  8   CoreFoundation                      0x2d45997b &lt;redacted&gt; + 346
  9   CoreFoundation                      0x2d45814f &lt;redacted&gt; + 1398
  10  CoreFoundation                      0x2d3c2c27 CFRunLoopRunSpecific + 522
  11  CoreFoundation                      0x2d3c2a0b CFRunLoopRunInMode + 106
  12  GraphicsServices                    0x320a1283 GSEventRunModal + 138
  13  UIKit                               0x2fc66049 UIApplicationMain + 1136
  14  MyApp                           0x001078e9 main + 116
  15  libdyld.dylib                       0x37d26ab7 &lt;redacted&gt; + 2
  )
  </code></pre>