mirror of
				https://bitbucket.org/ohhara/ohmulticastvideoscanner.git
				synced 2025-10-28 08:57:44 +00:00 
			
		
		
		
	Not decode audio.
Only video is necessary.
This commit is contained in:
		
							parent
							
								
									94cc364903
								
							
						
					
					
						commit
						de99d1f517
					
				| @ -27,6 +27,7 @@ typedef struct _OMVSGstImpl { | |||||||
| } OMVSGstImpl; | } OMVSGstImpl; | ||||||
| 
 | 
 | ||||||
| OMVSGst omvs_gst_open(const gchar *uri, const gchar *filename) { | OMVSGst omvs_gst_open(const gchar *uri, const gchar *filename) { | ||||||
|  |   guint flags; | ||||||
|   OMVSGstImpl *gst_impl; |   OMVSGstImpl *gst_impl; | ||||||
|   GstElement *play; |   GstElement *play; | ||||||
|   GstElement *conv; |   GstElement *conv; | ||||||
| @ -39,6 +40,9 @@ OMVSGst omvs_gst_open(const gchar *uri, const gchar *filename) { | |||||||
|   gst_impl = g_malloc0(sizeof(OMVSGstImpl)); |   gst_impl = g_malloc0(sizeof(OMVSGstImpl)); | ||||||
|   gst_impl->play = play = gst_element_factory_make("playbin", "play"); |   gst_impl->play = play = gst_element_factory_make("playbin", "play"); | ||||||
|   g_object_set(G_OBJECT(play), "uri", uri, NULL); |   g_object_set(G_OBJECT(play), "uri", uri, NULL); | ||||||
|  |   g_object_get(play, "flags", &flags, NULL); | ||||||
|  |   flags &= (~0x00000002); | ||||||
|  |   g_object_set(play, "flags", flags, NULL); | ||||||
|   conv = gst_element_factory_make("queue", "conv"); |   conv = gst_element_factory_make("queue", "conv"); | ||||||
|   png = gst_element_factory_make("pngenc", "png"); |   png = gst_element_factory_make("pngenc", "png"); | ||||||
|   g_object_set(G_OBJECT(png), "snapshot", 1, "compression-level", 9, NULL); |   g_object_set(G_OBJECT(png), "snapshot", 1, "compression-level", 9, NULL); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user