diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2013-11-27 00:12:18 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2013-11-27 00:12:18 +0900 |
commit | 576b20e11c24c079d944fbbfb2d8902c4b313c10 (patch) | |
tree | 62fe476e85e30b1a1e7367feeaf9fafddb1750cf | |
parent | 4f99c5d7a192ae80b26ee80e2a28d30a10d8049d (diff) | |
download | evas_generic_loaders-576b20e11c24c079d944fbbfb2d8902c4b313c10.tar.gz |
gst loader - early quit if gst stream has no video streams
this should fix the hang/pause in T551. so T551 fixed by this.
-rw-r--r-- | src/bin/gst/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bin/gst/main.c b/src/bin/gst/main.c index 1081da7..140fe02 100644 --- a/src/bin/gst/main.c +++ b/src/bin/gst/main.c @@ -45,6 +45,7 @@ _gst_init(const char *filename) GError *error = NULL; GstFormat format; GstStateChangeReturn ret; + int vidstr = 0; if (!filename || !*filename) return EINA_FALSE; @@ -77,6 +78,15 @@ _gst_init(const char *filename) g_error_free (error); goto gst_shutdown; } + + g_object_get(G_OBJECT(pipeline), + "n-video", &vidstr, + NULL); + if (vidstr <= 0) + { + D("no video stream\n"); + goto gst_shutdown; + } sink = gst_bin_get_by_name (GST_BIN (pipeline), "sink"); |