Commit 1caec50b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: hasInput() now checks for EOF of input

Are vlc_object_alive( p_input ) and !p_input->b_dead redundant?
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d1b3841b
......@@ -77,8 +77,14 @@ public:
virtual ~InputManager();
void delInput();
bool hasInput() { return p_input && !p_input->b_dead
&& vlc_object_alive (p_input); }
bool hasInput()
{
return p_input /* We have an input */
&& !p_input->b_dead /* not dead yet, */
&& !p_input->b_eof /* not EOF either, */
&& vlc_object_alive (p_input); /* and the VLC object is alive */
}
bool hasAudio();
bool hasVideo() { return hasInput() && b_video; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment