summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo.verdejo@collabora.co.uk>2011-04-05 21:55:18 -0400
committerReynaldo H. Verdejo Pinochet <reynaldo.verdejo@collabora.co.uk>2011-04-08 11:20:38 -0400
commitc7cf20661d6664d04f5896527da83d900d385d2e (patch)
treea13b893c910e682d7e42f6425b8bb7cc7ba7e9d8
parente83a6c3998d7cce0d12903f2b972c554acde910a (diff)
Avoid using gst_element_get_name if we dont need a copy
-rwxr-xr-xgstplayer/GstDriver.cpp6
-rw-r--r--gstplayer/GstMetadataRetrieverDriver.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/gstplayer/GstDriver.cpp b/gstplayer/GstDriver.cpp
index 029f6d1..16dc22f 100755
--- a/gstplayer/GstDriver.cpp
+++ b/gstplayer/GstDriver.cpp
@@ -69,7 +69,7 @@ GstDriver::~GstDriver ()
LOGV ("destructor");
if (mPlaybin) {
- LOGV ("free pipeline %s", gst_element_get_name (mPlaybin));
+ LOGV ("free pipeline %s", GST_ELEMENT_NAME (mPlaybin));
gst_element_set_state (mPlaybin, GST_STATE_NULL);
gst_object_unref (mPlaybin);
mPlaybin = NULL;
@@ -123,7 +123,7 @@ GstDriver::setup ()
if (!mPlaybin) {
LOGE ("can't create playbin2");
}
- LOGV ("playbin2 creation: %s", gst_element_get_name (mPlaybin));
+ LOGV ("playbin2 creation: %s", GST_ELEMENT_NAME (mPlaybin));
// verbose info (as gst-launch -v)
// Activate the trace with the command: "setprop persist.gst.verbose 1"
@@ -626,7 +626,7 @@ GstDriver::quit ()
gst_bus_set_flushing (bus, TRUE);
gst_object_unref (bus);
}
- LOGV ("free pipeline %s", gst_element_get_name (mPlaybin));
+ LOGV ("free pipeline %s", GST_ELEMENT_NAME (mPlaybin));
state = gst_element_set_state (mPlaybin, GST_STATE_NULL);
LOGV ("set pipeline state to NULL: %d (0:Failure, 1:Success, 2:Async, 3:NO_PREROLL)", state);
gst_object_unref (mPlaybin);
diff --git a/gstplayer/GstMetadataRetrieverDriver.cpp b/gstplayer/GstMetadataRetrieverDriver.cpp
index 8d79b32..5e3e9f1 100644
--- a/gstplayer/GstMetadataRetrieverDriver.cpp
+++ b/gstplayer/GstMetadataRetrieverDriver.cpp
@@ -76,7 +76,7 @@ GstMetadataRetrieverDriver::~GstMetadataRetrieverDriver()
}
if(mPipeline) {
- LOGV("free pipeline %s", gst_element_get_name(mPipeline));
+ LOGV("free pipeline %s", GST_ELEMENT_NAME(mPipeline));
gst_element_set_state(mPipeline, GST_STATE_NULL);
gst_object_unref (mPipeline);
mPipeline = NULL;
@@ -605,7 +605,7 @@ void GstMetadataRetrieverDriver::quit()
gst_bus_set_flushing(bus, TRUE);
gst_object_unref (bus);
}
- LOGV("free pipeline %s", gst_element_get_name(mPipeline));
+ LOGV("free pipeline %s", GST_ELEMENT_NAME(mPipeline));
state = gst_element_set_state(mPipeline, GST_STATE_NULL);
LOGV("set pipeline state to NULL: %d (0:Failure, 1:Success, 2:Async, 3:NO_PREROLL)", state);
gst_object_unref (mPipeline);