[vlc-commits] input: rationalize unknown query error

Rémi Denis-Courmont git at videolan.org
Sat Jun 10 12:05:26 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun 10 13:04:08 2017 +0300| [8ae3ae4f50a52622076449ab39ae8d7e938138d9] | committer: Rémi Denis-Courmont

input: rationalize unknown query error

This uses the same error format for ES out and input as demux.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8ae3ae4f50a52622076449ab39ae8d7e938138d9
---

 src/input/control.c | 2 +-
 src/input/es_out.c  | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/input/control.c b/src/input/control.c
index 6062a30a0d..24fe630473 100644
--- a/src/input/control.c
+++ b/src/input/control.c
@@ -559,7 +559,7 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
         }
 
         default:
-            msg_Err( p_input, "unknown query in input_vaControl" );
+            msg_Err( p_input, "unknown query 0x%x in %s", i_query, __func__ );
             return VLC_EGENERIC;
     }
 }
diff --git a/src/input/es_out.c b/src/input/es_out.c
index cde10deda7..c2a391555e 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2773,7 +2773,8 @@ static int EsOutControlLocked( es_out_t *out, int i_query, va_list args )
     }
 
     default:
-        msg_Err( p_sys->p_input, "unknown query in es_out_Control" );
+        msg_Err( p_sys->p_input, "unknown query 0x%x in %s", i_query,
+                 __func__  );
         return VLC_EGENERIC;
     }
 }



More information about the vlc-commits mailing list