Fixed GET_ATTACHMENTS return value (Reported by Bernie Purcell).
authorLaurent Aimar <fenrir@videolan.org>
Fri, 29 Jun 2007 22:52:28 +0000 (22:52 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Fri, 29 Jun 2007 22:52:28 +0000 (22:52 +0000)
src/input/control.c

index 551b8eb..47d5335 100644 (file)
@@ -566,7 +566,7 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
                 (*ppp_attachment)[i] = vlc_input_attachment_Duplicate( p_input->p->attachment[i] );
 
             vlc_mutex_unlock( &p_input->p->input.p_item->lock );
-            return VLC_EGENERIC;
+            return VLC_SUCCESS;
         }
 
         case INPUT_GET_ATTACHMENT:  /* arg1=input_attachment_t**, arg2=char*  res=can fail */