rtspsrc: Always interrupt CMD_LOOP after new command

Normally, the loop function gets interrupted when a new command is
received by the calling of gst_rtspsrc_connection_flush. However,
this only works if currently busy receiving, otherwise the command
thread would get stuck in gst_rtspsrc_loop. With this patch, the
function gst_rtspsrc_loop checks if pending_cmd has been set to a
new command before receiving, forcing the function to interrupt if
this is the case.

Fixes #598
15 jobs for fix-loop in 134 minutes and 48 seconds (queued for 5 minutes and 35 seconds)
latest
Status Job ID Name Coverage
  Preparation
passed #276729
gst indent

00:00:34

passed #276728
manifest

00:00:24

 
  Build
passed #276730
build fedora x86_64

00:06:54

passed #276731
build nodebug fedora x86_64

00:07:59

 
  Test
passed #276732
check fedora

00:04:24

passed #276733
integration testsuites fedora

00:18:18

 
  Full Builds
passed #279024
build cerbero android universal

00:11:52

passed #276736
build cerbero cross win32

00:07:15

passed #276737
build cerbero cross win64

00:05:36

passed #276734
build cerbero fedora x86_64

00:51:45

failed #276735
build cerbero android universal

01:00:00

 
  Full Tests
passed #276739
valgrind bad

00:10:02

passed #276740
valgrind ges

00:07:07

passed #276738
valgrind good

00:12:02

 
  Apps
passed #276741
android universal examples

00:07:38