From f36844960f4b03ca52006ae5608f0062f5a9f557 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Fri, 20 Feb 2009 18:04:44 -0700 Subject: get_state shows name info --- linden/indra/llmedia/llmediaimplgstreamer.cpp | 6 +++--- linden/indra/llmedia/llmediaimplgstreamer_syms_raw.inc | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'linden/indra/llmedia') diff --git a/linden/indra/llmedia/llmediaimplgstreamer.cpp b/linden/indra/llmedia/llmediaimplgstreamer.cpp index 20a1fc3..ece3fb0 100644 --- a/linden/indra/llmedia/llmediaimplgstreamer.cpp +++ b/linden/indra/llmedia/llmediaimplgstreamer.cpp @@ -600,7 +600,7 @@ bool LLMediaImplGStreamer::stop() mState = GST_STATE_READY; GstStateChangeReturn state_change = llgst_element_get_state(mPlaybin, NULL, NULL, GST_CLOCK_TIME_NONE); - LL_DEBUGS("MediaImpl") << "get_state: " << state_change << LL_ENDL; + LL_DEBUGS("MediaImpl") << "get_state: " << llgst_element_state_change_return_get_name(state_change) << LL_ENDL; return true; } @@ -623,7 +623,7 @@ bool LLMediaImplGStreamer::play() mState = GST_STATE_PLAYING;*/ GstStateChangeReturn state_change = llgst_element_get_state(mPlaybin, NULL, NULL, GST_CLOCK_TIME_NONE); - LL_DEBUGS("MediaImpl") << "get_state: " << state_change << LL_ENDL; + LL_DEBUGS("MediaImpl") << "get_state: " << llgst_element_state_change_return_get_name(state_change) << LL_ENDL; // Check to make sure playing was successful. If not, stop. if (state_change == GST_STATE_CHANGE_FAILURE) @@ -648,7 +648,7 @@ bool LLMediaImplGStreamer::pause() mState = GST_STATE_PAUSED; GstStateChangeReturn state_change = llgst_element_get_state(mPlaybin, NULL, NULL, GST_CLOCK_TIME_NONE); - LL_DEBUGS("MediaImpl") << "get_state: " << state_change << LL_ENDL; + LL_DEBUGS("MediaImpl") << "get_state: " << llgst_element_state_change_return_get_name(state_change) << LL_ENDL; return true; }; diff --git a/linden/indra/llmedia/llmediaimplgstreamer_syms_raw.inc b/linden/indra/llmedia/llmediaimplgstreamer_syms_raw.inc index fcee823..0d0d764 100644 --- a/linden/indra/llmedia/llmediaimplgstreamer_syms_raw.inc +++ b/linden/indra/llmedia/llmediaimplgstreamer_syms_raw.inc @@ -38,6 +38,7 @@ LL_GST_SYM(true, gst_value_get_fraction_denominator, gint, const GValue *value); LL_GST_SYM(true, gst_structure_get_name, G_CONST_RETURN gchar *, const GstStructure *structure); LL_GST_SYM(true, gst_element_seek, bool, GstElement *, gdouble, GstFormat, GstSeekFlags, GstSeekType, gint64, GstSeekType, gint64); LL_GST_SYM(true, gst_version, void, guint *major, guint *minor, guint *micro, guint *nano); +LL_GST_SYM(true, gst_element_state_change_return_get_name, const gchar *, GstStateChangeReturn state_ret); // optional symbols to grab LL_GST_SYM(false, gst_segtrap_set_enabled, void, gboolean enabled); -- cgit v1.1